summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-07-25 12:24:39 +0100
committerDavid Mitchell <davem@iabyn.com>2016-08-03 20:54:41 +0100
commit6daeaaa3123e456674380042544721b5f7a41f69 (patch)
treeea41fe0c05f003c52d2e24dee736aef801cc32eb /parser.h
parentbb6b75cd5c416da00accfd5a10bde1a1cdde693a (diff)
downloadperl-6daeaaa3123e456674380042544721b5f7a41f69.tar.gz
signatures: make param and optional param count IV
During the course of parsing end exection, these values get stored as ints and UVs, then used as SSize_t. Standardise on IVs instead. Technically they can never be negative, but their final use is as indices into AVs, which is SSize_t, so it's easier to standardise on a signed value throughout.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index d4b1ec8905..d5f1b88d88 100644
--- a/parser.h
+++ b/parser.h
@@ -118,8 +118,8 @@ typedef struct yy_parser {
line_t preambling; /* line # when processing $ENV{PERL5DB} */
/* these are valid whiling parsing a subroutine signature */
- int sig_elems; /* number of signature elements seen so far */
- int sig_optelems; /* number of optional signature elems seen */
+ IV sig_elems; /* number of signature elements seen so far */
+ IV sig_optelems; /* number of optional signature elems seen */
char sig_slurpy; /* the sigil of the slurpy var (or null) */
} yy_parser;