Avoid unnecessary malformed checking
authorKarl Williamson <public@khwilliamson.com>
Fri, 24 Jan 2014 18:42:19 +0000 (11:42 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 27 Jan 2014 18:07:18 +0000 (11:07 -0700)
commit3a8bbffbce67213008d5e0ad49bb873d08cbeee7
tree43d3aece553f3ce2395b15514f6c7d1defa1a8da
parent6c62bf0f1cb868c0614cc03720f3babf46da7e34
Avoid unnecessary malformed checking

regen/regcharclass.pl can create macros for use where we need to worry
about the possibility of malformed UTF-8, and for where we don't.  In
the case of looking at regex patterns, the Perl core has complete
control over generating them, and hence isn't generally going to create
too short a buffer;  if it does, it's a bug that will show up and get
fixed.  This commit changes to generate and use the faster macros that
don't do bounds checking.
regcharclass.h
regcomp.c
regen/regcharclass.pl
regexec.c