]> git.wincent.com - wikitext.git/commit
Add ary_clear method and use it
authorWincent Colaiuta <win@wincent.com>
Wed, 6 Feb 2008 12:35:59 +0000 (13:35 +0100)
committerWincent Colaiuta <win@wincent.com>
Wed, 6 Feb 2008 12:35:59 +0000 (13:35 +0100)
commit9b411a0702d8078eb0b52d68ec1c151bcaa6eb70
treecbd3c354ee9220d5be9eee2159873ae97522cf8f
parentebe7aea57d3c6990366107b1a7ac7f0c0c4bbb02
Add ary_clear method and use it

A bit of a micro-optimization: add an ary_clear method equivalent to
the Array#clear method. Although the speed-up should be intangible it
does make the resulting code look a little bit neater.

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