binpac: Added an option to quiet the status output from binpac.

This adds the -q command line flag to quiet the output.
It also fixes a small compiler warning.
This commit is contained in:
Seth Hall 2011-01-20 15:34:39 -05:00 committed by Tim Wojtulewicz
parent c2dbefab17
commit 1a15b968e6
4 changed files with 14 additions and 4 deletions

View file

@ -313,7 +313,8 @@ void switch_to_file(const char *filename)
input_filename = string(filename);
line_number = 1;
switch_to_file(yyin);
fprintf(stderr, "switching to file %s\n", input_filename.c_str());
if ( !FLAGS_quiet )
fprintf(stderr, "switching to file %s\n", input_filename.c_str());
}
void include_file(const char *filename)