diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-12-31 11:54:44 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-01-11 11:50:35 -0700 |
commit | 6b976e32dcccdff3dde7682ad9314dc5cd918e17 (patch) | |
tree | 4c44eacac564ebc264ea2e25bdec5a0c29d8e9d6 /embed.fnc | |
parent | 3c6cc85ea284b6b479dc5c19e0ca344a5e1103dc (diff) | |
download | perl-6b976e32dcccdff3dde7682ad9314dc5cd918e17.tar.gz |
regcomp.c: Use a parameter to simplify some code
When parsing \p{} outside of a bracketed character class, code in
regcomp.c has pretended it is a bracketed character class by changing
and restoring the parsing pointers, and then calling the charclass
handler. This code can be simplified by instead passing a flag to the
handler meaning to just parse one item. The faking is simpler there,
with no restoring necessary. Also we can eliminate the duplicate
handling of special cases.
Future commits will make more extensive use of this mechanism.
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1950,7 +1950,7 @@ Es |regnode*|regbranch |NN struct RExC_state_t *pRExC_state \ Es |STRLEN |reguni |NN const struct RExC_state_t *pRExC_state \ |UV uv|NN char *s Es |regnode*|regclass |NN struct RExC_state_t *pRExC_state \ - |NN I32 *flagp|U32 depth + |NN I32 *flagp|U32 depth|const bool stop_at_1 Es |regnode*|reg_node |NN struct RExC_state_t *pRExC_state|U8 op Es |UV |reg_recode |const char value|NN SV **encp Es |regnode*|regpiece |NN struct RExC_state_t *pRExC_state \ |