summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-10-13 19:59:23 +0100
committerFather Chrysostomos <sprout@cpan.org>2010-10-21 05:52:39 -0700
commit737c24fc85ea612b3265f06a29053674bfbe17bd (patch)
tree3741fc528606f4639eb64ee7af38f062516fd865 /parser.h
parentf07ec6dd59215a56bc1159449a9631be7a02a94d (diff)
downloadperl-737c24fc85ea612b3265f06a29053674bfbe17bd.tar.gz
replace PL_doextract with better kinds of variable
PL_doextract had two unrelated jobs, neither best served by an interpreter global variable. The first was to track the -x command-line switch. That is replaced with a local variable in S_parse_body(). The second was to track whether the lexer is in the middle of a =pod section. That is replaced with an element in PL_parser.
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 4ef460836c..f4054d5a13 100644
--- a/parser.h
+++ b/parser.h
@@ -105,6 +105,7 @@ typedef struct yy_parser {
COP *saved_curcop; /* the previous PL_curcop */
char tokenbuf[256];
+ bool in_pod; /* lexer is within a =pod section */
} yy_parser;
/* flags for lexer API */