diff options
author | David Mitchell <davem@iabyn.com> | 2016-07-25 12:24:39 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-08-03 20:54:41 +0100 |
commit | 6daeaaa3123e456674380042544721b5f7a41f69 (patch) | |
tree | ea41fe0c05f003c52d2e24dee736aef801cc32eb /parser.h | |
parent | bb6b75cd5c416da00accfd5a10bde1a1cdde693a (diff) | |
download | perl-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |