]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/includable-lexer.cc
release: 0.0.59
[lilypond.git] / lib / includable-lexer.cc
index f394907823ad369bbdaa5666354f947e227360b0..2f8d33f4610ebbbdad5d720b6ade4b56d10a194b 100644 (file)
@@ -35,7 +35,7 @@ Includable_lexer::new_input(String s, Sources  * global_sources)
 }
 
 /** pop the inputstack.  conceptually this is a destructor, but it
-  does not destruct the Source_file it creates.  */
+  does not destruct the Source_file that Includable_lexer::new_input creates.  */
 bool
 Includable_lexer::close_input()
 {
@@ -75,3 +75,9 @@ Includable_lexer::add_lexed_char(int count)
 {
     char_count_stack_.top() += count;
 }
+
+Source_file*
+Includable_lexer::source_file_l()const
+{
+    return include_stack_.top();
+}