From: nobu.nokada@... Date: 2003-07-03T02:51:56+09:00 Subject: Re: Ruby9i now available Hi, At Thu, 3 Jul 2003 02:16:33 +0900, Daniel Berger wrote: > > This is because in 1.8 rb_str2cstr(VALUE, int*) has changed to > > rb_str2cstr(VALUE, long*), and I've used ints for all my lengths. > > Ah, ok. Ruby has some #define's (in version.h) you could use to see > which version you're building against (if you're feeling up to it). It's not good idea to determin by release date or similar. Also, basically, rb_str2cstr() is obsolete. You should use StringValuePtr() and RSTRING()->ptr/len, instead. And the source looks like C++ or C99, doesn't it? -- Nobu Nakada