1 --- lex.CC_command.cpp.orig Mon Nov 12 19:05:12 2001
2 +++ lex.CC_command.cpp Mon Nov 12 19:14:49 2001
4 static int ace_cc_yy_init = 1; /* whether we need to initialize */
5 static int ace_cc_yy_start = 0; /* start state number */
7 +#define ace_cc_yywrap() 1
8 /* Flag which is used to allow ace_cc_yywrap()'s to do buffer switches
9 * instead of setting up a fresh ace_cc_yyin. A bit of a hack ...
11 +#if (ace_cc_yywrap() != 1)
12 static int ace_cc_yy_did_buffer_switch_on_eof;
15 void ace_cc_yyrestart ACE_CC_YY_PROTO(( FILE *input_file ));
18 #define ACE_CC_YY_AT_BOL() (ace_cc_yy_current_buffer->ace_cc_yy_at_bol)
21 -#define ace_cc_yywrap() 1
22 #define ACE_CC_YY_SKIP_ACE_CC_YYWRAP
23 typedef unsigned char ACE_CC_YY_CHAR;
24 FILE *ace_cc_yyin = (FILE *) 0, *ace_cc_yyout = (FILE *) 0;
26 ace_cc_yy_load_buffer_state();
29 + ace_cc_yy_cp = ace_cc_yy_bp = 0; /* To avoid g++ warning about
30 + possible uninitialized use. */
31 while ( 1 ) /* loops until end-of-file is reached */
33 ace_cc_yy_cp = ace_cc_yy_c_buf_p;
39 + /* ACE_CC_YY_BREAK */
44 + /* ACE_CC_YY_BREAK */
49 + /* ACE_CC_YY_BREAK */
54 + /* ACE_CC_YY_BREAK */
59 + /* ACE_CC_YY_BREAK */
64 + /* ACE_CC_YY_BREAK */
67 return T_CHANGEMODE_CMD;
69 + /* ACE_CC_YY_BREAK */
74 + /* ACE_CC_YY_BREAK */
79 + /* ACE_CC_YY_BREAK */
84 + /* ACE_CC_YY_BREAK */
89 + /* ACE_CC_YY_BREAK */
94 + /* ACE_CC_YY_BREAK */
99 + /* ACE_CC_YY_BREAK */
104 + /* ACE_CC_YY_BREAK */
109 + /* ACE_CC_YY_BREAK */
114 + /* ACE_CC_YY_BREAK */
119 + /* ACE_CC_YY_BREAK */
124 + /* ACE_CC_YY_BREAK */
127 { ace_cc_yylval.id = ACE_OS::strdup(&ace_cc_yytext[1]);
128 ace_cc_yylval.id[ace_cc_yyleng-2]='\0';
131 + /* ACE_CC_YY_BREAK */
134 { ace_cc_yylval.num = atoi(ace_cc_yytext); return T_NUM; }
136 + /* ACE_CC_YY_BREAK */
139 { ace_cc_yylval.id = ACE_OS::strdup(ace_cc_yytext);
142 + /* ACE_CC_YY_BREAK */
148 case EOB_ACT_END_OF_FILE:
150 +#if (ace_cc_yywrap() != 1)
151 ace_cc_yy_did_buffer_switch_on_eof = 0;
154 if ( ace_cc_yywrap() )
160 +#if (ace_cc_yywrap() != 1)
161 if ( ! ace_cc_yy_did_buffer_switch_on_eof )
167 @@ -1188,7 +1196,7 @@
169 #endif /* ifndef ACE_CC_YY_NO_UNPUT */
172 +#ifndef ACE_CC_YY_NO_INPUT
174 static int ace_cc_yyinput()
176 @@ -1237,13 +1245,13 @@
177 if ( ace_cc_yywrap() )
180 - if ( ! ace_cc_yy_did_buffer_switch_on_eof )
181 + /* if ( ! ace_cc_yy_did_buffer_switch_on_eof )
184 return ace_cc_yyinput();
191 case EOB_ACT_CONTINUE_SCAN:
192 @@ -1261,6 +1269,7 @@
196 +#endif /* ! ACE_CC_YY_NO_INPUT */
199 #ifdef ACE_CC_YY_USE_PROTOS
200 @@ -1304,7 +1313,9 @@
201 * is looked at is after ace_cc_yywrap() is called, so it's safe
202 * to go ahead and always set it.
204 +#if (ace_cc_yywrap() != 1)
205 ace_cc_yy_did_buffer_switch_on_eof = 1;