From: Vern Paxson Date: Wed, 15 Dec 1993 10:23:53 +0000 (+0000) Subject: start stack, extern "C++" moved X-Git-Tag: flex-2-5-5b~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28f45f1f486fda4323d6f6e6aea3194e949fc227;p=flex start stack, extern "C++" moved --- diff --git a/FlexLexer.h b/FlexLexer.h index 1d5a66d..c90f30d 100644 --- a/FlexLexer.h +++ b/FlexLexer.h @@ -35,10 +35,10 @@ // If you want to create multiple lexer classes, you use the -P flag // to rename each yyFlexLexer to some other xxFlexLexer. -extern "C++" { - #include +extern "C++" { + struct yy_buffer_state; typedef int yy_state_type; @@ -82,6 +82,9 @@ public: yy_more_flag = 0; yy_more_len = 0; + yy_start_stack_ptr = yy_start_stack_depth = 0; + yy_start_stack = 0; + yy_current_buffer = 0; #ifdef YY_USES_REJECT @@ -114,6 +117,13 @@ protected: void yy_load_buffer_state(); void yy_init_buffer( struct yy_buffer_state* b, istream* s ); + int yy_start_stack_ptr; + int yy_start_stack_depth; + int* yy_start_stack; + + void yy_push_state( int new_state ); + int yy_pop_state(); + yy_state_type yy_get_previous_state(); yy_state_type yy_try_NUL_trans( yy_state_type current_state ); int yy_get_next_buffer();