diff options
author | Zefram <zefram@fysh.org> | 2010-10-13 19:59:23 +0100 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-21 05:52:39 -0700 |
commit | 737c24fc85ea612b3265f06a29053674bfbe17bd (patch) | |
tree | 3741fc528606f4639eb64ee7af38f062516fd865 /parser.h | |
parent | f07ec6dd59215a56bc1159449a9631be7a02a94d (diff) | |
download | perl-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |