diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-04 14:11:26 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-06 01:13:48 -0700 |
commit | 60d6334874c6f82066ad72b36a86bcb753de82a2 (patch) | |
tree | f84c98df51148a83467bec30f03524fa644e1b12 /parser.h | |
parent | 233fb8229a314d457fa1db70bbe741ee5f985290 (diff) | |
download | perl-60d6334874c6f82066ad72b36a86bcb753de82a2.tar.gz |
Make source filters work in evalbytes
When a filter is added, the current buffer is hung on the end of
the filters array, and a new substring of it becomes the current
buffer.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -107,6 +107,7 @@ typedef struct yy_parser { bool in_pod; /* lexer is within a =pod section */ U8 lex_fakeeof; /* precedence at which to fake EOF */ + bool filtered; /* source filters in evalbytes */ U32 lex_flags; } yy_parser; @@ -116,8 +117,11 @@ typedef struct yy_parser { #ifdef PERL_CORE # define LEX_START_SAME_FILTER 0x00000001 +# define LEX_IGNORE_UTF8_HINTS 0x00000002 +# define LEX_EVALBYTES 0x00000004 +# define LEX_START_FLAGS \ + (LEX_START_SAME_FILTER|LEX_IGNORE_UTF8_HINTS|LEX_EVALBYTES) #endif -#define LEX_IGNORE_UTF8_HINTS 0x00000002 /* flags for parser API */ #define PARSE_OPTIONAL 0x00000001 |