X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fparse-scm.hh;h=f6bff19a65ca526c300d38e5a15546c69ef6f6a9;hb=a1f9375c70400bc4820921bd2ebbbb387a7dcf98;hp=dc71ad7402a7d11d08fb27c2a2d45c75c6efb0e5;hpb=e24df7c27635dc996c466295eacf2981bddccaf7;p=lilypond.git diff --git a/lily/include/parse-scm.hh b/lily/include/parse-scm.hh index dc71ad7402..f6bff19a65 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--2005 Han-Wen Nienhuys - + (c) 2004--2009 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 */