2002-08-09 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * lily/parse-scm.cc (protected_ly_parse_scm): compatibility with
+ CVS GUILE
+
* input/test/preset-extent.ly (texidoc): added file.
* scripts/convert-ly.py: add extent rule.
scm_c_eval_string (s.to_str0 ());
}
-/* Move this to libguile/read.h
- Note: auto-export is assumed (no __declspec (dllexport)) */
-#if (defined(_WIN32) || defined(__CYGWIN__)) \
- && !(defined(GUILE_BUILD_DLL) || defined(GUILE_STATIC))
-#define DLL_IMPORT __declspec (dllimport)
-#else
-#define DLL_IMPORT
-#endif
-extern DLL_IMPORT scm_t_option scm_read_opts[];
-
-
void
main_prog (void *, int, char **)
{
prepend_load_path (String (prefix_directory[i]) + "/scm");
}
- SCM_RECORD_POSITIONS_P = 1;
-
if (verbose_global_b)
dirinfo (stderr);
Do some magical incantations: if not, lily will exit on the first
GUILE error, leaving no location trace.
*/
+
+
+#if GUILE_MINOR_VERSION < 7
+ #define READ_ERROR "misc-error"
+ #else
+ #define READ_ERROR "read-error"
+#endif
+
SCM
protected_ly_parse_scm (Parse_start *ps)
{
- return scm_internal_catch (ly_symbol2scm ("misc-error"), &catch_protected_parse_body,
+ return scm_internal_catch (ly_symbol2scm (READ_ERROR),
+ &catch_protected_parse_body,
(void*)ps,
&parse_handler, (void*)ps);