summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-04-07 22:43:17 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-04-08 19:19:34 +0000
commit27308ded152a902d86f6f5763883d26b257e257a (patch)
treedd0b65da726bf4bdf33a5738a2972b6f9a5d0d20
parent2fde0ff06cfbce5bef48ed08a204260616fb0a3f (diff)
downloadperl-27308ded152a902d86f6f5763883d26b257e257a.tar.gz
(vaguely connected with) [perl #21875] Hash ref transformed as a list
Message-ID: <20030407204317.GA8796@fdgroup.com> The new XTERMORDORDOR lexer expectation must also be named in debugging perls, to be used in the output of -DT. p4raw-id: //depot/perl@19169
-rw-r--r--perl.h1
-rw-r--r--toke.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 89d1494fbf..fa802ac345 100644
--- a/perl.h
+++ b/perl.h
@@ -3182,6 +3182,7 @@ typedef enum {
XATTRTERM,
XTERMBLOCK,
XTERMORDORDOR /* evil hack */
+ /* update exp_name[] in toke.c if adding to this enum */
} expectation;
enum { /* pass one of these to get_vtbl */
diff --git a/toke.c b/toke.c
index 0009d62e6e..97085b48da 100644
--- a/toke.c
+++ b/toke.c
@@ -2141,7 +2141,7 @@ S_find_in_my_stash(pTHX_ char *pkgname, I32 len)
#ifdef DEBUGGING
static char* exp_name[] =
{ "OPERATOR", "TERM", "REF", "STATE", "BLOCK", "ATTRBLOCK",
- "ATTRTERM", "TERMBLOCK"
+ "ATTRTERM", "TERMBLOCK", "TERMORDORDOR"
};
#endif