Fix yyset_out, yyset_lineno calls and remove yyset_in calls in parsers. Ref #404

This commit is contained in:
John M. Penn 2017-03-30 16:14:28 -05:00
parent f757090e5b
commit 56ce1c75cc
3 changed files with 6 additions and 12 deletions

View File

@ -560,9 +560,9 @@ void ChkPtParseContext::init_scanner() {
yylex_init( &scanner);
// Set the file where output messages are to go.
yyset_out( stdout, &scanner);
yyset_out( stdout, scanner);
//yyset_lineno( 1, &scanner);
yyset_lineno( 1, scanner);
yyset_extra( this, scanner);
}

View File

@ -270,13 +270,10 @@ void Trick::ADefParseContext::init_scanner() {
// Allocate the scanner structure.
yylex_init( &scanner);
// Set the file to be parsed.
//yyset_in( fp_in, &scanner);
// Set the file where output messages are to go.
yyset_out( stdout, &scanner);
yyset_out( stdout, scanner);
//yyset_lineno( 1, &scanner);
yyset_lineno( 1, scanner );
yyset_extra( this, scanner);

View File

@ -135,13 +135,10 @@ void RefParseContext::init_scanner() {
// Allocate the scanner structure.
yylex_init( &scanner);
// Set the file to be parsed.
//yyset_in( fp_in, &scanner);
// Set the file where output messages are to go.
yyset_out( stdout, &scanner);
yyset_out( stdout, scanner);
//yyset_lineno( 1, &scanner);
yyset_lineno( 1, scanner);
yyset_extra( this, scanner);