Sha256: a63cfaf0ab3a7352d6e254f8a55d8142e2ba466042722b289262175228b35732

Contents?: true

Size: 625 Bytes

Versions: 13

Compression:

Stored size: 625 Bytes

Contents

#ifndef MISSING_ANCIENT_RUBY_H
#define MISSING_ANCIENT_RUBY_H

#ifndef HAVE_RB_STR_SET_LEN
static void my_str_set_len(VALUE str, long len)
{
	RSTRING(str)->len = len;
	RSTRING(str)->ptr[len] = '\0';
}
#define rb_str_set_len(str,len) my_str_set_len((str),(len))
#endif /* ! HAVE_RB_STR_SET_LEN */

#ifndef RSTRING_PTR
#  define RSTRING_PTR(s) (RSTRING(s)->ptr)
#endif /* !defined(RSTRING_PTR) */
#ifndef RSTRING_LEN
#  define RSTRING_LEN(s) (RSTRING(s)->len)
#endif /* !defined(RSTRING_LEN) */

#ifndef RARRAY_LEN
#  define RARRAY_LEN(s) (RARRAY(s)->len)
#endif /* !defined(RARRAY_LEN) */

#endif /* MISSING_ANCIENT_RUBY_H */

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
kgio-2.11.4 ext/kgio/ancient_ruby.h
kgio-2.11.3 ext/kgio/ancient_ruby.h
kgio-2.11.2 ext/kgio/ancient_ruby.h
kgio-2.11.1.1.g36ea ext/kgio/ancient_ruby.h
kgio-2.11.1 ext/kgio/ancient_ruby.h
kgio-2.11.0 ext/kgio/ancient_ruby.h
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kgio-2.10.0/ext/kgio/ancient_ruby.h
kgio-2.10.0 ext/kgio/ancient_ruby.h
kgio-2.9.3 ext/kgio/ancient_ruby.h
kgio-2.9.2 ext/kgio/ancient_ruby.h
kgio-2.9.1 ext/kgio/ancient_ruby.h
kgio-2.9.0.2.gf33a ext/kgio/ancient_ruby.h
kgio-2.9.0 ext/kgio/ancient_ruby.h