regex: Convert regnode FLAGS fields to charset enum
authorKarl Williamson <public@khwilliamson.com>
Sun, 26 Dec 2010 17:39:12 +0000 (10:39 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 17 Jan 2011 02:13:23 +0000 (19:13 -0700)
commitb988e673a1322982f92dcce5bc82b973c29216ed
tree954dbbb0d81c75379e4cfadd16afc74c13d49beb
parent50e911483ad5c29e25c54c9f81f92df974dd2cc0
regex: Convert regnode FLAGS fields to charset enum

The FLAGS fields of certain regnodes were encoded with USE_UNI if
unicode semantics were to be used.  This patch instead sets them to the
character set used, one of the possibilities of which is to use unicode
semantics.  This shortens the code somewhat, and always puts the
character set in the flags field, which can allow use of switch
statements on it for efficiency, especially as new values are added.
regcomp.c
regcomp.h
regexec.c