mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 08:10:17 +02:00
* errno.h: prototype for scm_strerror.
* error.c (scm_strerror): new procedure.
This commit is contained in:
parent
1782cc374c
commit
efb997f535
3 changed files with 14 additions and 0 deletions
|
@ -116,6 +116,14 @@ scm_error_scm (key, subr, message, args, rest)
|
|||
/* not reached. */
|
||||
}
|
||||
|
||||
SCM_PROC (s_strerror, "strerror", 1, 0, 0, scm_strerror);
|
||||
SCM
|
||||
scm_strerror (SCM err)
|
||||
{
|
||||
SCM_ASSERT (SCM_INUMP (err), err, SCM_ARG1, s_strerror);
|
||||
return scm_makfrom0str (strerror (SCM_INUM (err)));
|
||||
}
|
||||
|
||||
SCM_SYMBOL (scm_system_error_key, "system-error");
|
||||
void
|
||||
scm_syserror (subr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue