summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-12-03 14:01:19 +0000
committerDavid Mitchell <davem@iabyn.com>2016-12-05 11:54:03 +0000
commit0e0707c5741b52ed1f26e1f69d89b66a1b05f985 (patch)
tree4d6dd171e310f637b0b9cf33d63efbd1555167fb /sv.c
parenta14be3eb83c92f38596c3a429d631615e84e660b (diff)
downloadperl-0e0707c5741b52ed1f26e1f69d89b66a1b05f985.tar.gz
optimising yyparse: replace stack_size with a ptr
Makes testing whether the parser stack needs extending cheaper
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 6a17049a9a..1eff3648af 100644
--- a/sv.c
+++ b/sv.c
@@ -13130,7 +13130,7 @@ Perl_parser_dup(pTHX_ const yy_parser *const proto, CLONE_PARAMS *const param)
parser->old_parser = NULL;
parser->stack = NULL;
parser->ps = NULL;
- parser->stack_size = 0;
+ parser->stack_max1 = 0;
/* XXX parser->stack->state = 0; */
/* XXX eventually, just Copy() most of the parser struct ? */