[Rubyinstaller-devel] cross compiler compatibility thought
Roger Pack
rogerdpack at gmail.com
Tue Sep 22 11:54:06 EDT 2009
Had a thought about the whole "msvc versus mingw binaries compatible" thing...
The major rules seem to be:
* If you call ALLOC or ALLOC_N, use xfree and not free
* Don't call sprintf or printf in an extension, instead use
rb_f_sprintf/rb_vsprintf/rb_io_printf
So my question is...can you define free to be xfree automatically, and
not require any changes?
like
#define free(x) xfree(x)
?
Thanks.
-r
More information about the Rubyinstaller-devel
mailing list