Includable_lexer::new_input(String s, Sources * global_sources)
{
Source_file * sl = global_sources->get_file_l(s);
- if (!sl) {
+ if (!sl)
+ {
LexerError("Can't find file `" + s+ "'");
return;
- }
+ }
char_count_stack_.push(0);
cout << "]"<<flush;
yy_delete_buffer(yy_current_buffer );
yy_current_buffer = 0;
- if (state_stack_.empty()) {
+ if (state_stack_.empty())
+ {
return false;
- }else {
+ }else
+ {
yy_switch_to_buffer(state_stack_.pop());
return true;
- }
+ }
}
char const*
Includable_lexer::~Includable_lexer()
{
- while (!include_stack_.empty()) {
+ while (!include_stack_.empty())
+ {
close_input();
};
}