X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fparse-scm.hh;h=a2b3d649988710203ffc0fa7a3cff5df9fc7bcd7;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=9a33271b4ec39db75fe7208fb48021b26e7db280;hpb=38269bfebef7893a1bd82fd2182155f77a59e5a7;p=lilypond.git diff --git a/lily/include/parse-scm.hh b/lily/include/parse-scm.hh index 9a33271b4e..a2b3d64998 100644 --- a/lily/include/parse-scm.hh +++ b/lily/include/parse-scm.hh @@ -1,20 +1,38 @@ +/* + lily-guile.hh encapsulate guile -#ifndef PARSE_SCM -#define PARSE_SCM + source file of the GNU LilyPond music typesetter + + (c) 2004--2008 Han-Wen Nienhuys +*/ + +#ifndef PARSE_SCM_HH +#define PARSE_SCM_HH #include "input.hh" #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; + 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 *); - -SCM ly_parse_scm (char const* s, int *, Input); +SCM protected_ly_parse_scm (Parse_start *, bool); +SCM ly_parse_scm (char const *, int *, Input, bool, Lily_parser *); -#endif +#endif /* PARSE_SCM_HH */