X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fparse-scm.hh;h=a2b3d649988710203ffc0fa7a3cff5df9fc7bcd7;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=79ef343ebf1f014230e06368e3f895074645b8c8;hpb=d3b59ed445baf28ffd933df4620d5bc143f862ec;p=lilypond.git diff --git a/lily/include/parse-scm.hh b/lily/include/parse-scm.hh index 79ef343ebf..a2b3d64998 100644 --- a/lily/include/parse-scm.hh +++ b/lily/include/parse-scm.hh @@ -3,8 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004 Han-Wen Nienhuys - + (c) 2004--2008 Han-Wen Nienhuys */ #ifndef PARSE_SCM_HH @@ -14,17 +13,26 @@ #include "lily-guile.hh" extern bool parse_protect_global; +extern bool parsed_objects_should_be_dead; struct Parse_start { - char const* str; + char const *str; int nchars; Input start_location_; bool safe_; + Lily_parser *parser_; + + Parse_start() { + str = 0; + nchars = 0; + safe_ = false; + parser_ = 0; + } }; SCM catch_protected_parse_body (void *); SCM protected_ly_parse_scm (Parse_start *, bool); -SCM ly_parse_scm (char const *, int *, Input, bool); +SCM ly_parse_scm (char const *, int *, Input, bool, Lily_parser *); #endif /* PARSE_SCM_HH */