]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/includable-lexer.cc
* lily/font-select.cc (get_font_by_design_size): revert
[lilypond.git] / lily / includable-lexer.cc
index 195702bf24e0ad1e6c9d0eb944291c365e825593..73fe726ee46edb1dfa4792128ac9c89008cca5cf 100644 (file)
@@ -3,14 +3,14 @@
 
   source file of the LilyPond music typesetter
 
-  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
+#include "includable-lexer.hh"
+
 #include <sstream>
 
 #include "config.hh"
-
-#include "includable-lexer.hh"
 #include "file-path.hh"
 #include "source-file.hh"
 #include "source.hh"
@@ -68,7 +68,7 @@ Includable_lexer::new_input (String name, Sources *sources)
   if (yy_current_buffer)
     state_stack_.push (yy_current_buffer);
 
-  if (verbose_global_b)
+  if (be_verbose_global)
     progress_indication (String ("[") + name);
        
   include_stack_.push (file);
@@ -91,7 +91,7 @@ Includable_lexer::new_input (String name, String data, Sources *sources)
   if (yy_current_buffer)
     state_stack_.push (yy_current_buffer);
 
-  if (verbose_global_b)
+  if (be_verbose_global)
     progress_indication (String ("[") + name);
   include_stack_.push (file);
 
@@ -106,7 +106,7 @@ Includable_lexer::close_input ()
 {
   include_stack_.pop ();
   char_count_stack_.pop ();
-  if (verbose_global_b)
+  if (be_verbose_global)
     progress_indication ("]");
   yy_delete_buffer (yy_current_buffer);
 #if HAVE_FLEXLEXER_YY_CURRENT_BUFFER  
@@ -138,15 +138,6 @@ Includable_lexer::~Includable_lexer ()
       close_input ();
     }
 }
-/**
-  Since we don't create the buffer state from the bytes directly, we
-  don't know about the location of the lexer. Add this as a
-  YY_USER_ACTION */
-void
-Includable_lexer::add_lexed_char (int count)
-{
-  char_count_stack_.top () += count;
-}
 
 Source_file*
 Includable_lexer::get_source_file () const