OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 close_input (); | 150 close_input (); |
151 } | 151 } |
152 | 152 |
153 Source_file * | 153 Source_file * |
154 Includable_lexer::get_source_file () const | 154 Includable_lexer::get_source_file () const |
155 { | 155 { |
156 if (include_stack_.empty ()) | 156 if (include_stack_.empty ()) |
157 return 0; | 157 return 0; |
158 return include_stack_.back (); | 158 return include_stack_.back (); |
159 } | 159 } |
| 160 |
| 161 void Includable_lexer::skip_chars (size_t count) |
| 162 { |
| 163 for (size_t i = 0; i < count; ++i) |
| 164 yyinput (); |
| 165 char_count_stack_.back () += count; |
| 166 } |
OLD | NEW |