Sha256: a15461e905f8d9ba8ce730c1cfe8436ae80283de005297e4ac7de0d150abad63

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 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) */

#endif /* MISSING_ANCIENT_RUBY_H */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kgio-2.7.0 ext/kgio/ancient_ruby.h
kgio-2.6.0 ext/kgio/ancient_ruby.h
kgio-2.5.0 ext/kgio/ancient_ruby.h