]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-parser.cc
* configure.in (--enable-std-vector): New option.
[lilypond.git] / lily / lily-parser.cc
index 39e5c197a633ec08c07d4c3bc17a7ef34adc7362..256402a841a7ddadfa2ab66d53bbda267fb98305 100644 (file)
@@ -121,9 +121,9 @@ Lily_parser::parse_file (std::string init, std::string name, std::string out_nam
 
   scm_set_current_module (mod);
 
-  if (!define_spots_.is_empty ())
+  if (!define_spots_.empty ())
     {
-      define_spots_.top ().warning (_ ("braces don't match"));
+      define_spots_.back ().warning (_ ("braces don't match"));
       error_level_ = 1;
     }
 
@@ -148,9 +148,9 @@ Lily_parser::parse_string (std::string ly_code)
   do_yyparse ();
   scm_set_current_module (mod);
 
-  if (!define_spots_.is_empty ())
+  if (!define_spots_.empty ())
     {
-      if (define_spots_.is_empty ()
+      if (define_spots_.empty ()
          && !error_level_)
        programming_error ("define_spots_ don't match, but error_level_ not set.");
     }