source file of the LilyPond music typesetter
- (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <sstream>
{
if (!allow_includes_b_)
{
- LexerError ("include files are disallowed.");
+ LexerError (_ ("include files are not allowed").to_str0 ());
return;
}
#ifdef HAVE_FLEXLEXER_YY_CURRENT_BUFFER
yy_current_buffer = 0;
#endif
- if (state_stack_.empty ())
+ if (state_stack_.is_empty ())
{
#ifdef HAVE_FLEXLEXER_YY_CURRENT_BUFFER
yy_current_buffer = 0;
char const*
Includable_lexer::here_str0 () const
{
- if (include_stack_.empty ())
+ if (include_stack_.is_empty ())
return 0;
return include_stack_.top ()->to_str0 () + char_count_stack_.top ();
}
Includable_lexer::~Includable_lexer ()
{
- while (!include_stack_.empty ())
+ while (!include_stack_.is_empty ())
{
close_input ();
}
Source_file*
Includable_lexer::get_source_file () const
{
- if (include_stack_.empty ())
+ if (include_stack_.is_empty ())
return 0;
else
return include_stack_.top ();