]> git.wincent.com - wikitext.git/commit
Preliminary fix for Ruby 1.9 compatibility
authorWincent Colaiuta <win@wincent.com>
Tue, 12 May 2009 09:48:41 +0000 (11:48 +0200)
committerWincent Colaiuta <win@wincent.com>
Tue, 12 May 2009 09:48:41 +0000 (11:48 +0200)
commit7051f619c2f094bcb995a43a0add33f0ba20f6c5
treec1dd45a0f3147d7aa2c7a0aea8c4aecb74299e90
parentc1c3e3e16599cc7206cdb9feecafc5730911d8c2
Preliminary fix for Ruby 1.9 compatibility

The migration to the str_t type for the output buffer broke
compatibility with Ruby 1.9.

This commit shows what things would look like if we could
do a compile-time check for 1.9 and could thus modify the code
to make it compatible.

Unfortunately this doesn't actually work because although Ruby
comes with a "version.h" file with all the necessary macros,
for some reason it isn't installed when doing "make install".

In my local testing, that means that I can build under 1.9,
but it will fall back to the system-installed (1.8) headers
and the values for RUBY_VERSION_* are not correct.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c