1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

pre-boot lookup of print-exception works

* libguile/backtrace.c (scm_print_exception): Use scm_module_variable to
  look up print-exception so that it works before boot-9 is loaded.

* libguile/throw.c (CACHE_VAR): Tweak to use scm_from_latin1_symbol.
This commit is contained in:
Andy Wingo 2011-02-11 15:21:58 +01:00
parent e0c70a8b06
commit 9179e8a5ff
2 changed files with 4 additions and 3 deletions

View file

@ -80,8 +80,9 @@ scm_print_exception (SCM port, SCM frame, SCM key, SCM args)
SCM_VALIDATE_LIST (4, args);
if (scm_is_false (print_exception))
print_exception = scm_c_module_lookup (scm_the_root_module (),
"print-exception");
print_exception =
scm_module_variable (scm_the_root_module (),
scm_from_latin1_symbol ("print-exception"));
return scm_call_4 (scm_variable_ref (print_exception),
port, frame, key, args);

View file

@ -58,7 +58,7 @@
if (scm_is_false (var)) \
{ \
var = scm_module_variable (scm_the_root_module (), \
scm_from_locale_symbol (name)); \
scm_from_latin1_symbol (name)); \
if (scm_is_false (var)) \
abort (); \
}