diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-08-10 18:28:04 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-08-14 22:07:45 -0600 |
commit | 183a4cc7b668ccd6cfa55fb0dbde3f2cfafd3704 (patch) | |
tree | e593a9fa89789439ee391dabfb6314078859ca5f /regcomp.c | |
parent | c8ed25e60b6d0e4fd15d63363ea2c1c0e3e129d1 (diff) | |
download | perl-183a4cc7b668ccd6cfa55fb0dbde3f2cfafd3704.tar.gz |
regcomp.c: Move some initialization to declarations
This changes the declarations of two variables to also initialize them,
removing the initializing statements further down. This will be helpful
in a future commit, besides being generally slightly faster.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -10744,7 +10744,7 @@ tryagain: defchar: { STRLEN len = 0; - UV ender; + UV ender = 0; char *p; char *s; #define MAX_NODE_STRING_SIZE 127 @@ -10752,7 +10752,7 @@ tryagain: char *s0; U8 upper_parse = MAX_NODE_STRING_SIZE; STRLEN foldlen; - U8 node_type; + U8 node_type = compute_EXACTish(pRExC_state); bool next_is_quantifier; char * oldp = NULL; @@ -10761,8 +10761,6 @@ tryagain: * which allows the optimizer more things to look for */ bool maybe_exact; - ender = 0; - node_type = compute_EXACTish(pRExC_state); ret = reg_node(pRExC_state, node_type); /* In pass1, folded, we use a temporary buffer instead of the |