develooper Front page | perl.perl5.porters | Postings from May 2008

[PATCH] Prevent the tokenizer from segfaulting in debug mode when a FUNC token is forced

Thread Next
From:
Rafael Garcia-Suarez
Date:
May 16, 2008 03:13
Subject:
[PATCH] Prevent the tokenizer from segfaulting in debug mode when a FUNC token is forced
Message ID:
b77c1dce0805160313r78cb1b2bxfeb64460d2e9a7df@mail.gmail.com
Could someone apply this ?
In case the patch isn't crystal clear, it prevents the tokenizer from
segfaulting in debug mode when a FUNC token is forced. Makes also the
debug report for forced tokens more explicit.

--- toke.c
+++ toke.c
@@ -1359,7 +1359,7 @@
 #ifdef DEBUGGING
     if (DEBUG_T_TEST) {
         PerlIO_printf(Perl_debug_log, "### forced token:\n");
-       tokereport(THING, &NEXTVAL_NEXTTOKE);
+       tokereport(type, &NEXTVAL_NEXTTOKE);
     }
 #endif
 #ifdef PERL_MAD

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About