summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2003-02-28 11:27:10 +0000
committerJohn Millaway <john43@users.sourceforge.net>2003-02-28 11:27:10 +0000
commit74af518aecbe477db93ebfdb04df70210fda3af0 (patch)
treebfd0a66e8af53a87c5d6dceb8e3ce77373e43131 /main.c
parent44a9a45a62c97fbcd83b579a7c281c8cfe80a8bf (diff)
Removed yy_current_buffer from the planet.
Input buffer states are now in an internal unbounded stack. Added new internal function, yyensure_buffer_stack. Added new API function, yypush_buffer_state. Added new API function, yypop_buffer_state. Documented the new API calls in the manual. Macro YY_BUFFER_STATE now refers to top of stack. This revision breaks the C++ scanner (again.)
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8ae5b83..9df7269 100644
--- a/main.c
+++ b/main.c
@@ -405,6 +405,9 @@ void check_options ()
GEN_PREFIX ("_flush_buffer");
GEN_PREFIX ("_load_buffer_state");
GEN_PREFIX ("_switch_to_buffer");
+ GEN_PREFIX ("push_buffer_state");
+ GEN_PREFIX ("pop_buffer_state");
+ GEN_PREFIX ("ensure_buffer_stack");
GEN_PREFIX ("lex");
GEN_PREFIX ("restart");
GEN_PREFIX ("lex_init");
@@ -753,6 +756,9 @@ void flexend (exit_status)
"yy_set_bol",
"yy_set_interactive",
"yy_switch_to_buffer",
+ "yypush_buffer_state",
+ "yypop_buffer_state",
+ "yyensure_buffer_stack",
"yyalloc",
"yyconst",
"yyextra",