commit | 3a714480dd363d96f85cb468098e108775a043eb | [log] [tgz] |
---|---|---|
author | Yorhel <git@yorhel.nl> | Wed Sep 04 16:23:30 2013 +0200 |
committer | Yorhel <git@yorhel.nl> | Wed Sep 04 16:27:34 2013 +0200 |
tree | 837a08b633a370d65c6a91133ac7bd1019cee96d | |
parent | 563f33788291e81021c3f89fc7554a2003e7f7a3 [diff] |
Move ch>0 check to the top of yxml_parse() And move them out of each state (yxml_isChar()). This decreases the compiled size by about 1k and doesn't seem affect performance by much (it's a tiny bit faster, in fact). The real reason for making this change is to make implementing proper line ending normalization a bit simpler, coming in the next commit.