From: Phlip Date: 2007-08-04T22:39:22+09:00 Subject: Re: C ext to Ruby interaction between a Module and a Class Nobuyoshi Nakada wrote: > unbewust wrote: >> BUT i still have prob with "rb_require('raf/raliasfile');" : >> //make => rosxutils.c:105: warning: passing argument 1 of rb_require >> makes pointer from integer without a cast > > String literal in C must be enclosed with double-quotes, not > single-quotes. Multiple characters inside single-quotes would > be an OSX specific extension, perhaps inherited from old MacOS. It's not specifically an extension - it's a multiple byte character. The literal 'riffraff' would form a long-long (on some architures), containing those ASCII codes all packed into its bits. That's why the compiler ignores any trailing characters that don't fit into its integer type, then issues a bizarre complain't about converting an integer to a pointer. "" decays to a pointer. -- Phlip http://www.oreilly.com/catalog/9780596510657/ "Test Driven Ajax (on Rails)" assert_xpath, assert_javascript, & assert_ajax