mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
add %default-prompt-tag, and error (not abort()) on an abort to bad tag
* libguile/init.c (scm_i_init_guile): Call scm_init_control after initing fluids. * libguile/control.h (scm_sys_default_prompt_tag): New internal var. * libguile/control.c (scm_c_abort): If abort is called for an unknown tag, raise an exception, except if the tag was the default prompt tag, in which case really abort -- to prevent recursion when some other patches land. (scm_init_control): Define %default-prompt-tag in the default environment.
This commit is contained in:
parent
29366989cf
commit
3ccee39194
3 changed files with 19 additions and 5 deletions
|
@ -470,7 +470,6 @@ scm_i_init_guile (SCM_STACKITEM *base)
|
|||
scm_init_async (); /* requires smob_prehistory */
|
||||
scm_init_boolean ();
|
||||
scm_init_chars ();
|
||||
scm_init_control ();
|
||||
#ifdef GUILE_DEBUG_MALLOC
|
||||
scm_init_debug_malloc ();
|
||||
#endif
|
||||
|
@ -478,6 +477,7 @@ scm_i_init_guile (SCM_STACKITEM *base)
|
|||
scm_init_eq ();
|
||||
scm_init_error ();
|
||||
scm_init_fluids ();
|
||||
scm_init_control (); /* requires fluids */
|
||||
scm_init_feature ();
|
||||
scm_init_backtrace ();
|
||||
scm_init_fports ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue