summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp')
-rw-r--r--TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp b/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
index f7f038d703e..ccbf30b8145 100644
--- a/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
+++ b/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
@@ -220,13 +220,10 @@ static char *ace_cc_yy_c_buf_p = (char *) 0;
static int ace_cc_yy_init = 1; /* whether we need to initialize */
static int ace_cc_yy_start = 0; /* start state number */
-#define ace_cc_yywrap() 1
/* Flag which is used to allow ace_cc_yywrap()'s to do buffer switches
* instead of setting up a fresh ace_cc_yyin. A bit of a hack ...
*/
-#if (ace_cc_yywrap() != 1)
static int ace_cc_yy_did_buffer_switch_on_eof;
-#endif
void ace_cc_yyrestart ACE_CC_YY_PROTO(( FILE *input_file ));
@@ -265,6 +262,7 @@ static void ace_cc_yy_flex_free ACE_CC_YY_PROTO(( void * ));
#define ACE_CC_YY_AT_BOL() (ace_cc_yy_current_buffer->ace_cc_yy_at_bol)
+#define ace_cc_yywrap() 1
#define ACE_CC_YY_SKIP_ACE_CC_YYWRAP
typedef unsigned char ACE_CC_YY_CHAR;
FILE *ace_cc_yyin = (FILE *) 0, *ace_cc_yyout = (FILE *) 0;
@@ -912,9 +910,7 @@ case ACE_CC_YY_STATE_EOF(INITIAL):
{
case EOB_ACT_END_OF_FILE:
{
-#if (ace_cc_yywrap() != 1)
ace_cc_yy_did_buffer_switch_on_eof = 0;
-#endif
if ( ace_cc_yywrap() )
{
@@ -935,10 +931,8 @@ case ACE_CC_YY_STATE_EOF(INITIAL):
else
{
-#if (ace_cc_yywrap() != 1)
if ( ! ace_cc_yy_did_buffer_switch_on_eof )
ACE_CC_YY_NEW_FILE;
-#endif
}
break;
}
@@ -1339,9 +1333,7 @@ ACE_CC_YY_BUFFER_STATE new_buffer;
* is looked at is after ace_cc_yywrap() is called, so it's safe
* to go ahead and always set it.
*/
-#if (ace_cc_yywrap() != 1)
ace_cc_yy_did_buffer_switch_on_eof = 1;
-#endif
}