Sha256: 23b9e68e281c088ae6f09f358af6a4a51b6252784315d8987b1d28848a19b2ea

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

/*
 * $Id: ruby_missing.h 25189 2009-10-02 12:04:37Z akr $
 * 'OpenSSL for Ruby' project
 * Copyright (C) 2001-2003  Michal Rokos <m.rokos@sh.cvut.cz>
 * All rights reserved.
 */
/*
 * This program is licenced under the same licence as Ruby.
 * (See the file 'LICENCE'.)
 */
#if !defined(_OSSL_RUBY_MISSING_H_)
#define _OSSL_RUBY_MISSING_H_

#define rb_define_copy_func(klass, func) \
	rb_define_method(klass, "initialize_copy", func, 1)


#ifndef GetReadFile
#define FPTR_TO_FD(fptr) (fptr->fd)
#else
#define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
#endif

#ifndef HAVE_RB_IO_T
#define rb_io_t OpenFile
#endif

#ifndef HAVE_RB_STR_SET_LEN
/* these methods should probably be backported to 1.8 */
#define rb_str_set_len(str, length) do {	\
	RSTRING(str)->ptr[length] = 0;		\
	RSTRING(str)->len = length;		\
} while(0)
#endif /* ! HAVE_RB_STR_SET_LEN */

#ifndef HAVE_RB_BLOCK_CALL
/* the openssl module doesn't use arg[3-4] and arg2 is always rb_each */
#define rb_block_call(arg1, arg2, arg3, arg4, arg5, arg6) rb_iterate(rb_each, arg1, arg5, arg6)
#endif /* ! HAVE_RB_BLOCK_CALL */

#endif /* _OSSL_RUBY_MISSING_H_ */

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
rhodes-5.5.18 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.17 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.15 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.0.22 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.2 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.0.7 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.0.3 lib/extensions/openssl/ext/ruby_missing.h
rhodes-5.5.0 lib/extensions/openssl/ext/ruby_missing.h
tauplatform-1.0.3 lib/extensions/openssl/ext/ruby_missing.h
tauplatform-1.0.2 lib/extensions/openssl/ext/ruby_missing.h
tauplatform-1.0.1 lib/extensions/openssl/ext/ruby_missing.h
rhodes-3.5.1.12 lib/extensions/openssl/ext/ruby_missing.h
rhodes-3.4.2 lib/extensions/openssl/ext/ruby_missing.h