]> git.wincent.com - wikitext.git/commit
Avoid allocation in _Wikitext_append_sanitized_link_target
authorWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 22:54:42 +0000 (00:54 +0200)
committerWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 22:56:05 +0000 (00:56 +0200)
commit0ac6375d84aae056875e6b5048637ec72a3c2289
treed59ee9d2af59526586304f6c06716ea9c704d236
parent4628a675e60c1c23f4f6a9385b1a31e186b4b31f
Avoid allocation in _Wikitext_append_sanitized_link_target

Rather than allocating a buffer and then copying (appending) to
the output buffer, append directly to the output buffer along the
way.

At the same time, drop the now unneeded dest_ptr parameter to the
_Wikitext_utf8_to_utf32 function.

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