]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/includable-lexer.cc
release: 0.1.9
[lilypond.git] / lib / includable-lexer.cc
index 6b4348d5f2a9a6e49b9a0f439af1cc5d692b8ddb..73d00498a80fa00b7333ff5b5580e41ac792648e 100644 (file)
@@ -24,10 +24,11 @@ void
 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);
@@ -59,12 +60,14 @@ Includable_lexer::close_input()
     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*
@@ -77,7 +80,8 @@ Includable_lexer::here_ch_C()
 
 Includable_lexer::~Includable_lexer()
 {
-    while (!include_stack_.empty()) {
+    while (!include_stack_.empty()) 
+      {
        close_input();
     };
 }