mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* error.c (scm_everr, scm_init_error): write now writes correct
number of characters. Define %%system-error with SCM_SYMBOL.
This commit is contained in:
parent
5391bb635c
commit
043045f853
1 changed files with 2 additions and 3 deletions
|
@ -172,7 +172,7 @@ scm_everr (exp, env, arg, pos, s_subr)
|
|||
|
||||
/* No return, but just in case: */
|
||||
|
||||
write (2, "unhandled system error", sizeof ("unhandled system error"));
|
||||
write (2, "unhandled system error", sizeof ("unhandled system error") - 1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
|
@ -201,8 +201,7 @@ void
|
|||
scm_init_error ()
|
||||
#endif
|
||||
{
|
||||
system_error_sym = SCM_CAR (scm_intern0 ("%%system-error"));
|
||||
scm_permanent_object (system_error_sym);
|
||||
SCM_SYMBOL (system_error_sym, "%%system-error");
|
||||
#include "error.x"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue