Tweak change 27457 - make PL_lasttoke MAD only, but teach makedef.pl
Nicholas Clark [Fri, 10 Mar 2006 12:09:39 +0000 (12:09 +0000)]
about MADness (and unMADness - maybe there is a special word for that)

p4raw-id: //depot/perl@27460

intrpvar.h
makedef.pl

index 7f947a3..6cdf894 100644 (file)
@@ -300,8 +300,8 @@ PERLVAR(Ilex_casestack,     char *)         /* what kind of case mods in effect */
 /* What we know when we're in LEX_KNOWNEXT state. */
 #ifdef PERL_MAD
 PERLVARA(Inexttoke,5,  NEXTTOKE)       /* value of next token, if any */
-#else
 PERLVAR(Ilasttoke,     I32)
+#else
 PERLVARA(Inextval,5,   YYSTYPE)        /* value of next token, if any */
 PERLVARA(Inexttype,5,  I32)            /* type of next token */
 PERLVAR(Inexttoke,     I32)
index ab3b2c4..5b4f930 100644 (file)
@@ -837,10 +837,16 @@ unless ($define{'PERL_TRACK_MEMPOOL'}) {
                     )];
 }
 
-unless ($define{'PERL_MAD'}) {
+if ($define{'PERL_MAD'}) {
+    skip_symbols [qw(
+                    PL_nextval
+                    PL_nexttype
+                    )];
+} else {
     skip_symbols [qw(
                    PL_madskills
                    PL_xmlfp
+                   PL_lasttoke
                    Perl_pad_peg
                    Perl_xmldump_indent
                    Perl_xmldump_vindent