]> git.wincent.com - wikitext.git/commit
Avoid copying string backing when returning from parse function
authorWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 19:00:20 +0000 (21:00 +0200)
committerWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 19:00:20 +0000 (21:00 +0200)
commit9bb93fec713bbe523442da0a6a43009f89609a60
treed951ed955a192629e3c9695df45f63c4d111636d
parent619a5045394b9d20f16d1d0cb0f1de959ba67d83
Avoid copying string backing when returning from parse function

This is a somewhat nasty hack to avoid making a copy of the output
when it comes time to return from the function. For the time being
it will only work with Ruby 1.8.x, or at least, 1.9.x hasn't been
tested yet.

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