mirror of
https://github.com/nasa/trick.git
synced 2025-03-22 03:55:32 +00:00
Fix yyset_out, yyset_lineno calls and remove yyset_in calls in parsers. Ref #404
This commit is contained in:
parent
f757090e5b
commit
56ce1c75cc
@ -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);
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user