X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fparse-scm.cc;h=0769083cfa6c4f1371659a4612f3bd9fee4c0d52;hb=7785ac382ed511ed535adf77adc3c07649fbc9b5;hp=7cb8b34c099dce21694ecc2b9b444e51066f4271;hpb=4ecdbd7d70ca7441be4dddd15ac01cc255bc2a35;p=lilypond.git diff --git a/lily/parse-scm.cc b/lily/parse-scm.cc index 7cb8b34c09..0769083cfa 100644 --- a/lily/parse-scm.cc +++ b/lily/parse-scm.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2005 Han-Wen Nienhuys + (c) 2004--2006 Han-Wen Nienhuys */ #include "parse-scm.hh" @@ -11,6 +11,7 @@ #include using namespace std; +#include "international.hh" #include "main.hh" #include "paper-book.hh" #include "source-file.hh" @@ -25,7 +26,7 @@ internal_ly_parse_scm (Parse_start *ps) Source_file *sf = ps->start_location_.get_source_file (); SCM port = sf->get_port (); - int off = ps->start_location_.start () - sf->to_str0 (); + int off = ps->start_location_.start () - sf->c_str (); scm_seek (port, scm_long2num (off), scm_long2num (SEEK_SET)); SCM from = scm_ftell (port); @@ -114,6 +115,7 @@ protected_ly_parse_scm (Parse_start *ps) } bool parse_protect_global = true; +bool parsed_objects_should_be_dead = false; /* Try parsing. Upon failure return SCM_UNDEFINED. FIXME: shouldn't we return SCM_UNSCPECIFIED -- jcn */