Comment out some #line directives in twparser, since they confuse gcov

This commit is contained in:
Brian Cox 2017-08-25 19:00:39 -07:00
parent dc943880de
commit f4263cf2b8
3 changed files with 87 additions and 87 deletions

View File

@ -478,7 +478,7 @@ static int yy_base[] = {
}; };
#line 152 "..\\..\\mkslexyacc\\etc\\yylex.cpp" // #line 152 "..\\..\\mkslexyacc\\etc\\yylex.cpp"
// MKS LEX prototype scanner code // MKS LEX prototype scanner code
// Copyright 1991 by Mortice Kern Systems Inc. // Copyright 1991 by Mortice Kern Systems Inc.
@ -505,7 +505,7 @@ const int MIN_NUM_STATES = 20;
#define REJECT goto yy_reject #define REJECT goto yy_reject
#define yymore() goto yy_more #define yymore() goto yy_more
#line 10 "tokens.l" // #line 10 "tokens.l"
#include "stdtwparser.h" #include "stdtwparser.h"
@ -563,7 +563,7 @@ std::string FormatSyntaxError( char ch, const char* pszAdditionalMsg = NULL )
// saves typing // saves typing
#define TRACE_RETURN(x) lextrace(_T(#x)); return x #define TRACE_RETURN(x) lextrace(_T(#x)); return x
#line 178 "..\\..\\mkslexyacc\\etc\\yylex.cpp" // #line 178 "..\\..\\mkslexyacc\\etc\\yylex.cpp"
// Constructor for yy_scan. Set up tables // Constructor for yy_scan. Set up tables
@ -762,7 +762,7 @@ yy_scan::yylex()
int yyoldi, yyoleng; /* base i, yyleng before look-ahead */ int yyoldi, yyoleng; /* base i, yyleng before look-ahead */
int yyeof; /* 1 if eof has already been read */ int yyeof; /* 1 if eof has already been read */
#line 375 "..\\..\\mkslexyacc\\etc\\yylex.cpp" // #line 375 "..\\..\\mkslexyacc\\etc\\yylex.cpp"
#ifdef YYEXIT #ifdef YYEXIT
@ -876,43 +876,43 @@ yy_scan::yylex()
YY_USER(); YY_USER();
switch (yy_la_act[yyfmin] & 0777) { switch (yy_la_act[yyfmin] & 0777) {
case 0: case 0:
#line 109 "tokens.l" // #line 109 "tokens.l"
{ {
BEGIN( globals ); BEGIN( globals );
} }
break; break;
case 1: case 1:
#line 114 "tokens.l" // #line 114 "tokens.l"
{ {
BEGIN(INITIAL); BEGIN(INITIAL);
return TWP_SECTION; return TWP_SECTION;
} }
break; break;
case 2: case 2:
#line 119 "tokens.l" // #line 119 "tokens.l"
{ TRACE_RETURN(TWP_ECHO); } { TRACE_RETURN(TWP_ECHO); }
break; break;
case 3: case 3:
#line 122 "tokens.l" // #line 122 "tokens.l"
{ {
lextrace(_T("eating spaces...")); /* eat spaces */ lextrace(_T("eating spaces...")); /* eat spaces */
} }
break; break;
case 4: case 4:
#line 125 "tokens.l" // #line 125 "tokens.l"
{ {
cParserHelper::IncrementLineNumber(); cParserHelper::IncrementLineNumber();
lextrace(_T("eating line continuation...")); /* eat line continuations */ lextrace(_T("eating line continuation...")); /* eat line continuations */
} }
break; break;
case 5: case 5:
#line 129 "tokens.l" // #line 129 "tokens.l"
{ {
lextrace(_T("eating comment...")); lextrace(_T("eating comment..."));
} }
break; break;
case 6: case 6:
#line 138 "tokens.l" // #line 138 "tokens.l"
{ {
// we must make copy of string, otherwise another lexeme will clobber it // we must make copy of string, otherwise another lexeme will clobber it
cDebug d("\t\t\t\tlexer::string"); cDebug d("\t\t\t\tlexer::string");
@ -931,7 +931,7 @@ yy_scan::yylex()
} }
break; break;
case 7: case 7:
#line 155 "tokens.l" // #line 155 "tokens.l"
{ {
// we must make copy of string, otherwise another lexeme will clobber it // we must make copy of string, otherwise another lexeme will clobber it
cDebug d("\t\t\t\tlexer::qstring"); cDebug d("\t\t\t\tlexer::qstring");
@ -960,19 +960,19 @@ yy_scan::yylex()
} }
break; break;
case 8: case 8:
#line 182 "tokens.l" // #line 182 "tokens.l"
{ TRACE_RETURN(TWP_SEMICOLON); } { TRACE_RETURN(TWP_SEMICOLON); }
break; break;
case 9: case 9:
#line 183 "tokens.l" // #line 183 "tokens.l"
{ TRACE_RETURN(TWP_EQUALS); } { TRACE_RETURN(TWP_EQUALS); }
break; break;
case 10: case 10:
#line 185 "tokens.l" // #line 185 "tokens.l"
{ cParserHelper::IncrementLineNumber(); } { cParserHelper::IncrementLineNumber(); }
break; break;
case 11: case 11:
#line 186 "tokens.l" // #line 186 "tokens.l"
{ {
std::string strError; std::string strError;
strError = FormatSyntaxError( yytext[0], "The global section only accepts statements of the form:\n variable = value;\n" ); strError = FormatSyntaxError( yytext[0], "The global section only accepts statements of the form:\n variable = value;\n" );
@ -981,102 +981,102 @@ yy_scan::yylex()
} /* catches anything that cannot be deemed a variable definition and exits. */ } /* catches anything that cannot be deemed a variable definition and exits. */
break; break;
case 12: case 12:
#line 196 "tokens.l" // #line 196 "tokens.l"
{ {
lextrace(_T("eating spaces...")); /* eat spaces */ lextrace(_T("eating spaces...")); /* eat spaces */
} }
break; break;
case 13: case 13:
#line 200 "tokens.l" // #line 200 "tokens.l"
{ {
cParserHelper::IncrementLineNumber(); cParserHelper::IncrementLineNumber();
lextrace(_T("eating line continuation...")); /* eat line continuations */ lextrace(_T("eating line continuation...")); /* eat line continuations */
} }
break; break;
case 14: case 14:
#line 205 "tokens.l" // #line 205 "tokens.l"
{ {
lextrace(_T("eating comment...")); lextrace(_T("eating comment..."));
} }
break; break;
case 15: case 15:
#line 209 "tokens.l" // #line 209 "tokens.l"
{ TRACE_RETURN(TWP_LBRACE); } { TRACE_RETURN(TWP_LBRACE); }
break; break;
case 16: case 16:
#line 210 "tokens.l" // #line 210 "tokens.l"
{ TRACE_RETURN(TWP_RBRACE); } { TRACE_RETURN(TWP_RBRACE); }
break; break;
case 17: case 17:
#line 213 "tokens.l" // #line 213 "tokens.l"
{ TRACE_RETURN(TWP_BANG); } { TRACE_RETURN(TWP_BANG); }
break; break;
case 18: case 18:
#line 215 "tokens.l" // #line 215 "tokens.l"
{ TRACE_RETURN(TWP_RARROW); } { TRACE_RETURN(TWP_RARROW); }
break; break;
case 19: case 19:
#line 216 "tokens.l" // #line 216 "tokens.l"
{ TRACE_RETURN(TWP_EQUALS); } { TRACE_RETURN(TWP_EQUALS); }
break; break;
case 20: case 20:
#line 218 "tokens.l" // #line 218 "tokens.l"
{ TRACE_RETURN(TWP_SEMICOLON); } { TRACE_RETURN(TWP_SEMICOLON); }
break; break;
case 21: case 21:
#line 219 "tokens.l" // #line 219 "tokens.l"
{ TRACE_RETURN(TWP_LPAREN); } { TRACE_RETURN(TWP_LPAREN); }
break; break;
case 22: case 22:
#line 220 "tokens.l" // #line 220 "tokens.l"
{ TRACE_RETURN(TWP_RPAREN); } { TRACE_RETURN(TWP_RPAREN); }
break; break;
case 23: case 23:
#line 221 "tokens.l" // #line 221 "tokens.l"
{ TRACE_RETURN(TWP_COMMA); } { TRACE_RETURN(TWP_COMMA); }
break; break;
case 24: case 24:
#line 222 "tokens.l" // #line 222 "tokens.l"
{ TRACE_RETURN(TWP_PIPE); } { TRACE_RETURN(TWP_PIPE); }
break; break;
case 25: case 25:
#line 226 "tokens.l" // #line 226 "tokens.l"
{ TRACE_RETURN(TWP_DOLLAR); } { TRACE_RETURN(TWP_DOLLAR); }
break; break;
case 26: case 26:
#line 227 "tokens.l" // #line 227 "tokens.l"
{ TRACE_RETURN(TWP_OROR); } { TRACE_RETURN(TWP_OROR); }
break; break;
case 27: case 27:
#line 230 "tokens.l" // #line 230 "tokens.l"
{ TRACE_RETURN(TWP_SECTION); } { TRACE_RETURN(TWP_SECTION); }
break; break;
case 28: case 28:
#line 231 "tokens.l" // #line 231 "tokens.l"
{ TRACE_RETURN(TWP_IFHOST); } { TRACE_RETURN(TWP_IFHOST); }
break; break;
case 29: case 29:
#line 232 "tokens.l" // #line 232 "tokens.l"
{ TRACE_RETURN(TWP_ELSE); } { TRACE_RETURN(TWP_ELSE); }
break; break;
case 30: case 30:
#line 233 "tokens.l" // #line 233 "tokens.l"
{ TRACE_RETURN(TWP_ENDIF); } { TRACE_RETURN(TWP_ENDIF); }
break; break;
case 31: case 31:
#line 234 "tokens.l" // #line 234 "tokens.l"
{ TRACE_RETURN(TWP_ERROR); } { TRACE_RETURN(TWP_ERROR); }
break; break;
case 32: case 32:
#line 235 "tokens.l" // #line 235 "tokens.l"
{ TRACE_RETURN(TWP_ECHO); } { TRACE_RETURN(TWP_ECHO); }
break; break;
case 33: case 33:
#line 236 "tokens.l" // #line 236 "tokens.l"
{ lextrace( _T( "@@end" ) ); return 0; } /* logical end of file */ { lextrace( _T( "@@end" ) ); return 0; } /* logical end of file */
break; break;
case 34: case 34:
#line 239 "tokens.l" // #line 239 "tokens.l"
{ {
// we must make copy of string, otherwise another lexeme will clobber it // we must make copy of string, otherwise another lexeme will clobber it
cDebug d("\t\t\t\tlexer::string"); cDebug d("\t\t\t\tlexer::string");
@ -1095,7 +1095,7 @@ yy_scan::yylex()
} }
break; break;
case 35: case 35:
#line 256 "tokens.l" // #line 256 "tokens.l"
{ {
// we must make copy of string, otherwise another lexeme will clobber it // we must make copy of string, otherwise another lexeme will clobber it
cDebug d("\t\t\t\tlexer::qstring"); cDebug d("\t\t\t\tlexer::qstring");
@ -1134,11 +1134,11 @@ yy_scan::yylex()
} }
break; break;
case 36: case 36:
#line 309 "tokens.l" // #line 309 "tokens.l"
{ cParserHelper::IncrementLineNumber(); } { cParserHelper::IncrementLineNumber(); }
break; break;
case 37: case 37:
#line 310 "tokens.l" // #line 310 "tokens.l"
{ {
std::string strError; std::string strError;
strError = FormatSyntaxError( yytext[0] ); strError = FormatSyntaxError( yytext[0] );
@ -1147,7 +1147,7 @@ yy_scan::yylex()
} /* catches anything else that's not in here and quits */ } /* catches anything else that's not in here and quits */
break; break;
#line 487 "..\\..\\mkslexyacc\\etc\\yylex.cpp" // #line 487 "..\\..\\mkslexyacc\\etc\\yylex.cpp"
} }
YY_SCANNER(); YY_SCANNER();
@ -1231,7 +1231,7 @@ yy_scan::unput(int c)
return c; return c;
} }
#line 321 "tokens.l" // #line 321 "tokens.l"

View File

@ -38,7 +38,7 @@
#endif #endif
#define YYNEWLINE 10 #define YYNEWLINE 10
#line 1 "..\\..\\mkslexyacc\\etc\\yylex.cpp" //#line 1 "..\\..\\mkslexyacc\\etc\\yylex.cpp"
// MKS LEX prototype scanner header // MKS LEX prototype scanner header
// Copyright 1991 by Mortice Kern Systems Inc. // Copyright 1991 by Mortice Kern Systems Inc.
// All rights reserved. // All rights reserved.

View File

@ -30,7 +30,7 @@
// info@tripwire.org or www.tripwire.org. // info@tripwire.org or www.tripwire.org.
// //
/* ..\. -LC -o ..\twparser\yyparse.cpp -P ..\..\mkslexyacc\etc\yyparse.cpp -D yyparse.h policy.y */ /* ..\. -LC -o ..\twparser\yyparse.cpp -P ..\..\mkslexyacc\etc\yyparse.cpp -D yyparse.h policy.y */
#line 74 "policy.y" // #line 74 "policy.y"
#include "stdtwparser.h" #include "stdtwparser.h"
@ -349,7 +349,7 @@ int yy_parse::yynrule = 55;
#line 2 "..\\..\\mkslexyacc\\etc\\yyparse.cpp" // #line 2 "..\\..\\mkslexyacc\\etc\\yyparse.cpp"
// C++ YACC parser code // C++ YACC parser code
// Copyright 1991 by Mortice Kern Systems Inc. All rights reserved. // Copyright 1991 by Mortice Kern Systems Inc. All rights reserved.
// //
@ -689,22 +689,22 @@ yyEncore:
switch (yyi) { /* perform semantic action */ switch (yyi) { /* perform semantic action */
case YYr6: { /* statement : variable_assignment TWP_SEMICOLON */ case YYr6: { /* statement : variable_assignment TWP_SEMICOLON */
#line 194 "policy.y" // #line 194 "policy.y"
cParserHelper::IncrementScopeStatementCount(); cParserHelper::IncrementScopeStatementCount();
} break; } break;
case YYr7: { /* statement : global_variable_assignment TWP_SEMICOLON */ case YYr7: { /* statement : global_variable_assignment TWP_SEMICOLON */
#line 195 "policy.y" // #line 195 "policy.y"
cParserHelper::IncrementScopeStatementCount(); cParserHelper::IncrementScopeStatementCount();
} break; } break;
case YYr8: { /* statement : rule TWP_SEMICOLON */ case YYr8: { /* statement : rule TWP_SEMICOLON */
#line 196 "policy.y" // #line 196 "policy.y"
cParserHelper::IncrementScopeStatementCount(); cParserHelper::IncrementScopeStatementCount();
} break; } break;
case YYr12: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN TWP_LBRACE */ case YYr12: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN TWP_LBRACE */
#line 204 "policy.y" // #line 204 "policy.y"
cDebug d("Parse::scope"); cDebug d("Parse::scope");
@ -721,7 +721,7 @@ case YYr12: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_c
} break; } break;
case YYr13: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN TWP_LBRACE $12 opt_statement_list TWP_RBRACE */ case YYr13: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN TWP_LBRACE $12 opt_statement_list TWP_RBRACE */
#line 218 "policy.y" // #line 218 "policy.y"
if( 0 == cParserHelper::GetScopeStatementCount() && iUserNotify::GetInstance()->GetVerboseLevel() == iUserNotify::V_VERBOSE ) if( 0 == cParserHelper::GetScopeStatementCount() && iUserNotify::GetInstance()->GetVerboseLevel() == iUserNotify::V_VERBOSE )
{ {
@ -737,7 +737,7 @@ case YYr13: { /* scoped_block : TWP_LPAREN attribute_list_with_opt_trailing_c
} break; } break;
case YYr14: { /* directive_block : TWP_IFHOST host_name_list */ case YYr14: { /* directive_block : TWP_IFHOST host_name_list */
#line 234 "policy.y" // #line 234 "policy.y"
cDebug d("Parse::#ifhost"); cDebug d("Parse::#ifhost");
@ -763,7 +763,7 @@ case YYr14: { /* directive_block : TWP_IFHOST host_name_list */
} break; } break;
case YYr15: { /* directive_block : TWP_IFHOST host_name_list $14 opt_statement_list opt_else_host TWP_ENDIF */ case YYr15: { /* directive_block : TWP_IFHOST host_name_list $14 opt_statement_list opt_else_host TWP_ENDIF */
#line 257 "policy.y" // #line 257 "policy.y"
cDebug d("Parse::#endif"); cDebug d("Parse::#endif");
cPreprocessor::PopState(); cPreprocessor::PopState();
@ -773,7 +773,7 @@ case YYr15: { /* directive_block : TWP_IFHOST host_name_list $14 opt_statemen
} break; } break;
case YYr16: { /* directive_block : TWP_SECTION string */ case YYr16: { /* directive_block : TWP_SECTION string */
#line 264 "policy.y" // #line 264 "policy.y"
cDebug d("Parse::#section"); cDebug d("Parse::#section");
@ -787,7 +787,7 @@ case YYr16: { /* directive_block : TWP_SECTION string */
} break; } break;
case YYr17: { /* directive_block : TWP_ERROR string */ case YYr17: { /* directive_block : TWP_ERROR string */
#line 275 "policy.y" // #line 275 "policy.y"
if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT && !cParserHelper::ParseOnly() ) if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT && !cParserHelper::ParseOnly() )
{ {
@ -801,7 +801,7 @@ case YYr17: { /* directive_block : TWP_ERROR string */
} break; } break;
case YYr18: { /* directive_block : TWP_ECHO string */ case YYr18: { /* directive_block : TWP_ECHO string */
#line 286 "policy.y" // #line 286 "policy.y"
if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT && !cParserHelper::ParseOnly() ) if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT && !cParserHelper::ParseOnly() )
{ {
@ -814,7 +814,7 @@ case YYr18: { /* directive_block : TWP_ECHO string */
} break; } break;
case YYr19: { /* host_name_list : host_name_list TWP_OROR host_name */ case YYr19: { /* host_name_list : host_name_list TWP_OROR host_name */
#line 299 "policy.y" // #line 299 "policy.y"
yyval.mpStringList = yypvt[-2].mpStringList; yyval.mpStringList = yypvt[-2].mpStringList;
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
@ -822,7 +822,7 @@ case YYr19: { /* host_name_list : host_name_list TWP_OROR host_name */
} break; } break;
case YYr20: { /* host_name_list : host_name */ case YYr20: { /* host_name_list : host_name */
#line 304 "policy.y" // #line 304 "policy.y"
yyval.mpStringList = new cParseStringList; yyval.mpStringList = new cParseStringList;
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
@ -830,7 +830,7 @@ case YYr20: { /* host_name_list : host_name */
} break; } break;
case YYr21: { /* opt_else_host : TWP_ELSE */ case YYr21: { /* opt_else_host : TWP_ELSE */
#line 312 "policy.y" // #line 312 "policy.y"
cDebug d("Parse::#else"); cDebug d("Parse::#else");
@ -848,7 +848,7 @@ case YYr21: { /* opt_else_host : TWP_ELSE */
} break; } break;
case YYr24: { /* variable_assignment : variable_name TWP_EQUALS multi_string */ case YYr24: { /* variable_assignment : variable_name TWP_EQUALS multi_string */
#line 332 "policy.y" // #line 332 "policy.y"
cDebug d("Parse::variable_assignment"); cDebug d("Parse::variable_assignment");
@ -869,7 +869,7 @@ case YYr24: { /* variable_assignment : variable_name TWP_EQUALS multi_string
} break; } break;
case YYr25: { /* global_variable_assignment : global_string TWP_EQUALS global_multi_string */ case YYr25: { /* global_variable_assignment : global_string TWP_EQUALS global_multi_string */
#line 353 "policy.y" // #line 353 "policy.y"
cDebug d("Parse::global variable_assignment"); cDebug d("Parse::global variable_assignment");
@ -890,7 +890,7 @@ case YYr25: { /* global_variable_assignment : global_string TWP_EQUALS global
} break; } break;
case YYr26: { /* rule : fco_name TWP_RARROW spec_masks */ case YYr26: { /* rule : fco_name TWP_RARROW spec_masks */
#line 374 "policy.y" // #line 374 "policy.y"
cDebug d("Parse::rule(fco_name TWP_RARROW spec_masks)"); cDebug d("Parse::rule(fco_name TWP_RARROW spec_masks)");
if( cPreprocessor::GetState() == cPreprocessor::STATE_IGNORE ) if( cPreprocessor::GetState() == cPreprocessor::STATE_IGNORE )
@ -935,7 +935,7 @@ case YYr26: { /* rule : fco_name TWP_RARROW spec_masks */
} break; } break;
case YYr27: { /* rule : TWP_BANG fco_name */ case YYr27: { /* rule : TWP_BANG fco_name */
#line 416 "policy.y" // #line 416 "policy.y"
cDebug d("Parse::rule(!fconame)"); cDebug d("Parse::rule(!fconame)");
@ -966,7 +966,7 @@ case YYr27: { /* rule : TWP_BANG fco_name */
} break; } break;
case YYr28: { /* spec_masks : prop_vector opt_spec_attributes */ case YYr28: { /* spec_masks : prop_vector opt_spec_attributes */
#line 447 "policy.y" // #line 447 "policy.y"
if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT ) if( cPreprocessor::GetState() == cPreprocessor::STATE_ACCEPT )
{ {
@ -987,28 +987,28 @@ case YYr28: { /* spec_masks : prop_vector opt_spec_attributes */
} break; } break;
case YYr29: { /* opt_spec_attributes : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN */ case YYr29: { /* opt_spec_attributes : TWP_LPAREN attribute_list_with_opt_trailing_comma TWP_RPAREN */
#line 485 "policy.y" // #line 485 "policy.y"
yyval.mpAttrList = yypvt[-1].mpAttrList; yyval.mpAttrList = yypvt[-1].mpAttrList;
} break; } break;
case YYr30: { /* opt_spec_attributes : */ case YYr30: { /* opt_spec_attributes : */
#line 489 "policy.y" // #line 489 "policy.y"
yyval.mpAttrList = new cParseNamedAttrList; yyval.mpAttrList = new cParseNamedAttrList;
} break; } break;
case YYr31: { /* attribute_list_with_opt_trailing_comma : attribute_list opt_comma */ case YYr31: { /* attribute_list_with_opt_trailing_comma : attribute_list opt_comma */
#line 515 "policy.y" // #line 515 "policy.y"
yyval.mpAttrList = yypvt[-1].mpAttrList; yyval.mpAttrList = yypvt[-1].mpAttrList;
} break; } break;
case YYr32: { /* attribute_list : attribute_list TWP_COMMA attribute */ case YYr32: { /* attribute_list : attribute_list TWP_COMMA attribute */
#line 522 "policy.y" // #line 522 "policy.y"
cDebug d("Parse::attribute_list"); cDebug d("Parse::attribute_list");
ASSERT( yypvt[-2].mpAttrList && yypvt[0].mpAttr ); ASSERT( yypvt[-2].mpAttrList && yypvt[0].mpAttr );
@ -1024,7 +1024,7 @@ case YYr32: { /* attribute_list : attribute_list TWP_COMMA attribute */
} break; } break;
case YYr33: { /* attribute_list : attribute */ case YYr33: { /* attribute_list : attribute */
#line 535 "policy.y" // #line 535 "policy.y"
cDebug d("Parse::attribute_list"); cDebug d("Parse::attribute_list");
@ -1038,7 +1038,7 @@ case YYr33: { /* attribute_list : attribute */
} break; } break;
case YYr34: { /* attribute : attribute_name TWP_EQUALS attribute_value */ case YYr34: { /* attribute : attribute_name TWP_EQUALS attribute_value */
#line 548 "policy.y" // #line 548 "policy.y"
cDebug d("Parse::attribute"); cDebug d("Parse::attribute");
@ -1055,7 +1055,7 @@ case YYr34: { /* attribute : attribute_name TWP_EQUALS attribute_value */
} break; } break;
case YYr37: { /* variable : TWP_DOLLAR TWP_LPAREN variable_name TWP_RPAREN */ case YYr37: { /* variable : TWP_DOLLAR TWP_LPAREN variable_name TWP_RPAREN */
#line 618 "policy.y" // #line 618 "policy.y"
cDebug d( " parser::variable" ); cDebug d( " parser::variable" );
@ -1082,7 +1082,7 @@ case YYr37: { /* variable : TWP_DOLLAR TWP_LPAREN variable_name TWP_RPAREN */
} break; } break;
case YYr38: { /* prop_vector : multi_string */ case YYr38: { /* prop_vector : multi_string */
#line 662 "policy.y" // #line 662 "policy.y"
yyval.mpString = new cParseString; yyval.mpString = new cParseString;
*yyval.mpString = ConcatenateStrings( yypvt[0].mpStringList ); *yyval.mpString = ConcatenateStrings( yypvt[0].mpStringList );
@ -1091,7 +1091,7 @@ case YYr38: { /* prop_vector : multi_string */
} break; } break;
case YYr39: { /* attribute_name : string */ case YYr39: { /* attribute_name : string */
#line 671 "policy.y" // #line 671 "policy.y"
cDebug d(" parser::string(attribute_name)"); cDebug d(" parser::string(attribute_name)");
yyval.mpString = yypvt[0].mpString; yyval.mpString = yypvt[0].mpString;
@ -1099,7 +1099,7 @@ case YYr39: { /* attribute_name : string */
} break; } break;
case YYr40: { /* attribute_value : multi_string */ case YYr40: { /* attribute_value : multi_string */
#line 679 "policy.y" // #line 679 "policy.y"
yyval.mpString = new cParseString; yyval.mpString = new cParseString;
cDebug d(" parser::multi_string(attribute_value)"); cDebug d(" parser::multi_string(attribute_value)");
@ -1109,7 +1109,7 @@ case YYr40: { /* attribute_value : multi_string */
} break; } break;
case YYr41: { /* fco_name : multi_string */ case YYr41: { /* fco_name : multi_string */
#line 689 "policy.y" // #line 689 "policy.y"
cDebug d(" parser::multi_string(fco_name)"); cDebug d(" parser::multi_string(fco_name)");
yyval.mpStringList = yypvt[0].mpStringList; yyval.mpStringList = yypvt[0].mpStringList;
@ -1117,7 +1117,7 @@ case YYr41: { /* fco_name : multi_string */
} break; } break;
case YYr42: { /* fco_name : multi_string TWP_PIPE multi_string */ case YYr42: { /* fco_name : multi_string TWP_PIPE multi_string */
#line 695 "policy.y" // #line 695 "policy.y"
yypvt[-2].mpStringList->push_back( _T("|") ); yypvt[-2].mpStringList->push_back( _T("|") );
@ -1129,7 +1129,7 @@ case YYr42: { /* fco_name : multi_string TWP_PIPE multi_string */
} break; } break;
case YYr43: { /* host_name : string */ case YYr43: { /* host_name : string */
#line 710 "policy.y" // #line 710 "policy.y"
cDebug d(" parser::multi_string(host_name)"); cDebug d(" parser::multi_string(host_name)");
@ -1138,7 +1138,7 @@ case YYr43: { /* host_name : string */
} break; } break;
case YYr44: { /* variable_name : TWP_STRING */ case YYr44: { /* variable_name : TWP_STRING */
#line 719 "policy.y" // #line 719 "policy.y"
cDebug d(" parser::string(variable_name)"); cDebug d(" parser::string(variable_name)");
yyval.mpString = yypvt[0].mpString; yyval.mpString = yypvt[0].mpString;
@ -1146,7 +1146,7 @@ case YYr44: { /* variable_name : TWP_STRING */
} break; } break;
case YYr45: { /* multi_string : multi_string string */ case YYr45: { /* multi_string : multi_string string */
#line 728 "policy.y" // #line 728 "policy.y"
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
delete yypvt[0].mpString; delete yypvt[0].mpString;
@ -1154,7 +1154,7 @@ case YYr45: { /* multi_string : multi_string string */
} break; } break;
case YYr46: { /* multi_string : string */ case YYr46: { /* multi_string : string */
#line 733 "policy.y" // #line 733 "policy.y"
yyval.mpStringList = new cParseStringList; yyval.mpStringList = new cParseStringList;
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
@ -1163,7 +1163,7 @@ case YYr46: { /* multi_string : string */
} break; } break;
case YYr47: { /* global_multi_string : global_multi_string global_string */ case YYr47: { /* global_multi_string : global_multi_string global_string */
#line 742 "policy.y" // #line 742 "policy.y"
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
delete yypvt[0].mpString; delete yypvt[0].mpString;
@ -1171,7 +1171,7 @@ case YYr47: { /* global_multi_string : global_multi_string global_string */
} break; } break;
case YYr48: { /* global_multi_string : global_string */ case YYr48: { /* global_multi_string : global_string */
#line 747 "policy.y" // #line 747 "policy.y"
yyval.mpStringList = new cParseStringList; yyval.mpStringList = new cParseStringList;
yyval.mpStringList->push_back( *yypvt[0].mpString ); yyval.mpStringList->push_back( *yypvt[0].mpString );
@ -1180,7 +1180,7 @@ case YYr48: { /* global_multi_string : global_string */
} break; } break;
case YYr49: { /* string : TWP_STRING */ case YYr49: { /* string : TWP_STRING */
#line 757 "policy.y" // #line 757 "policy.y"
cDebug d(" parser::string(normal)"); cDebug d(" parser::string(normal)");
d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString); d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString);
@ -1189,7 +1189,7 @@ case YYr49: { /* string : TWP_STRING */
} break; } break;
case YYr50: { /* string : variable */ case YYr50: { /* string : variable */
#line 763 "policy.y" // #line 763 "policy.y"
cDebug d(" parser::string(normal)"); cDebug d(" parser::string(normal)");
d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString); d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString);
@ -1198,14 +1198,14 @@ case YYr50: { /* string : variable */
} break; } break;
case YYr51: { /* global_string : TWP_GLOBAL_STRING */ case YYr51: { /* global_string : TWP_GLOBAL_STRING */
#line 772 "policy.y" // #line 772 "policy.y"
cDebug d(" parser::string(normal)"); cDebug d(" parser::string(normal)");
d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString); d.TraceNever("--(STRING)--> got string (%s)\n", yypvt[0].mpString);
yyval.mpString = yypvt[0].mpString; yyval.mpString = yypvt[0].mpString;
} break; } break;
#line 343 "..\\..\\mkslexyacc\\etc\\yyparse.cpp" // #line 343 "..\\..\\mkslexyacc\\etc\\yyparse.cpp"
case YYrACCEPT: case YYrACCEPT:
YYACCEPT; YYACCEPT;
case YYrERROR: case YYrERROR: