diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-02-10 00:10:10 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-02-10 00:10:10 +0100 |
commit | 1a3e316c32562aec2665a0233d46d5635f9c1245 (patch) | |
tree | fb83aeab4add09b26fde8b29b3831cd2a6497f87 /doc/ref/api-control.texi | |
parent | 43cfae363493460bed62da24bcdc51fce7ba250a (diff) | |
download | guile-1a3e316c32562aec2665a0233d46d5635f9c1245.tar.gz |
Remove traces of 'scm_memory_error'.
'scm_memory_error' was deprecated in 2014 in commit
c2247b782a9234bb9aedee5204c30daf1d01a510 and removed in 2017 in commit
c248ea10beb2afa4c113dbc6dc707bed5dbfc92e. This is a followup.
* libguile/error.h (SCM_MEMORY_ERROR): Remove.
* doc/guile-api.alist: Remove 'scm_memory_error'.
* doc/ref/api-control.texi (Handling Errors): Likewise.
(Dynamic Wind): Use 'scm_misc_error' instead of 'scm_memory_error'.
Diffstat (limited to 'doc/ref/api-control.texi')
-rw-r--r-- | doc/ref/api-control.texi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi index f603e32e3..25ae85bf3 100644 --- a/doc/ref/api-control.texi +++ b/doc/ref/api-control.texi @@ -1669,7 +1669,7 @@ scm_foo (SCM s1, SCM s2) c_res = foo (c_s1, c_s2); if (c_res == NULL) - scm_memory_error ("foo"); + scm_misc_error ("foo", "out of memory!", SCM_EOL); scm_dynwind_end (); @@ -2288,7 +2288,6 @@ and the call to these routines doesn't change @code{errno}. @deftypefnx {C Function} void scm_wrong_num_args (SCM @var{proc}) @deftypefnx {C Function} void scm_wrong_type_arg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}) @deftypefnx {C Function} void scm_wrong_type_arg_msg (char *@var{subr}, int @var{argnum}, SCM @var{bad_value}, const char *@var{expected}) -@deftypefnx {C Function} void scm_memory_error (char *@var{subr}) @deftypefnx {C Function} void scm_misc_error (const char *@var{subr}, const char *@var{message}, SCM @var{args}) Throw an error with the various keys described above. |