1996-07-25 22:56:11 +00:00
|
|
|
|
/* classes: h_files */
|
|
|
|
|
|
|
2001-06-07 21:12:19 +00:00
|
|
|
|
#ifndef SCM_ERROR_H
|
|
|
|
|
|
#define SCM_ERROR_H
|
2001-08-31 14:42:31 +00:00
|
|
|
|
|
2008-05-14 05:20:47 +02:00
|
|
|
|
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2006, 2008 Free Software Foundation, Inc.
|
2001-08-31 14:42:31 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
|
|
* as published by the Free Software Foundation; either version 3 of
|
|
|
|
|
|
* the License, or (at your option) any later version.
|
2001-08-31 14:42:31 +00:00
|
|
|
|
*
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* This library is distributed in the hope that it will be useful, but
|
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
* Lesser General Public License for more details.
|
2001-08-31 14:42:31 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2009-06-17 00:22:09 +01:00
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
|
* 02110-1301 USA
|
2003-04-05 19:15:35 +00:00
|
|
|
|
*/
|
2001-08-31 14:42:31 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2001-08-31 14:42:31 +00:00
|
|
|
|
|
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: #include "libguile/__scm.h", not
<libguile/__scm.h>. This allows 'gcc -MM' to determine which
dependencies are within libguile properly.
1996-09-05 21:19:08 +00:00
|
|
|
|
#include "libguile/__scm.h"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_system_error_key;
|
|
|
|
|
|
SCM_API SCM scm_num_overflow_key;
|
|
|
|
|
|
SCM_API SCM scm_out_of_range_key;
|
|
|
|
|
|
SCM_API SCM scm_args_number_key;
|
|
|
|
|
|
SCM_API SCM scm_arg_type_key;
|
|
|
|
|
|
SCM_API SCM scm_memory_alloc_key;
|
|
|
|
|
|
SCM_API SCM scm_misc_error_key;
|
2001-09-20 08:18:26 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_error (SCM key, const char *subr, const char *message,
|
|
|
|
|
|
SCM args, SCM rest) SCM_NORETURN;
|
|
|
|
|
|
SCM_API SCM scm_error_scm (SCM key, SCM subr, SCM message,
|
|
|
|
|
|
SCM args, SCM rest) SCM_NORETURN;
|
|
|
|
|
|
SCM_API SCM scm_strerror (SCM err);
|
|
|
|
|
|
SCM_API void scm_syserror (const char *subr) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_syserror_msg (const char *subr, const char *message,
|
|
|
|
|
|
SCM args, int eno) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_num_overflow (const char *subr) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_out_of_range (const char *subr, SCM bad_value)
|
* chars.c (scm_lowers, scm_uppers, scm_charnames, scm_charnums),
eval.c (s_expression, s_test, s_body, s_bindings, s_variable,
s_clauses, s_formals): Variables now const.
* eval.c (promsmob): Now const.
* macros.c (macrosmob): Now const.
* smob.c (scm_newsmob): Smobfuns argument now points to const.
(freecell, flob, bigob): Now const.
* dynl.c (scm_make_argv_from_stringlist, scm_coerce_rostring),
error.c (scm_error, scm_syserror, scm_syserror_msg,
scm_num_overflow, scm_out_of_range, scm_wrong_type_arg,
scm_memory_error, scm_misc_error, scm_wta), macros.c
(scm_make_synt), feature.c (scm_add_feature), filesys.c
(scm_input_waiting_p), gc.c (scm_gc_start, scm_igc,
scm_must_malloc, scm_must_realloc), gsubr.c (scm_make_gsubr),
numbers.c (scm_num2dbl, scm_two_doubles, scm_num2long,
scm_num2long_long, scm_num2ulong),
options.c (scm_options), posix.c (scm_convert_exec_args,
environ_list_to_c), procs.c (scm_make_subr_opt, scm_make_subr),
ramap.c (scm_ramapc), read.c (scm_flush_ws), socket.c
(scm_sock_fd_to_port, scm_fill_sockaddr, scm_addr_vector), stime.c
(setzone, restorezone, bdtime2c), strop.c (scm_i_index),
strports.c (scm_mkstrport), symbols.c (scm_intern_obarray_soft,
scm_intern_obarray, scm_intern, scm_intern0,
scm_sysintern0_no_module_lookup, scm_sysintern, scm_sysintern0,
scm_symbol_value0), unif.c (scm_aind, scm_shap2ra): Argument
indicating calling subr, error message text, reason for error,
symbol name or feature name are now pointer to const.
* snarf.h (SCM_PROC, SCM_PROC1): String variables are now const.
* procs.c (scm_init_iprocs): iproc argument now points to const.
* pairs.c (cxrs): Now const.
* chars.h, error.h, feature.h, filesys.h, gc.h, gsubr.h, macros.h,
numbers.h, options.h, procs.h, ramap.h, read.h, smob.h,
strports.h, symbols.h, unif.h: Update variable declarations and
function prototypes for above changes.
* dynl.c, dynl-dld.c, dynl-dl.c, dynl-shl.c (sysdep_dynl_link,
sysdep_dynl_unlink, sysdep_dynl_func): Arguments FNAME, SUBR, and
SYMB now point to const.
1999-02-06 12:31:04 +00:00
|
|
|
|
SCM_NORETURN;
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_out_of_range_pos (const char *subr, SCM bad_value, SCM pos)
|
2000-01-07 23:53:20 +00:00
|
|
|
|
SCM_NORETURN;
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_wrong_num_args (SCM proc) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_error_num_args_subr (const char* subr) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_wrong_type_arg (const char *subr, int pos,
|
|
|
|
|
|
SCM bad_value) SCM_NORETURN;
|
2009-08-20 20:30:12 -07:00
|
|
|
|
SCM_INTERNAL void scm_i_wrong_type_arg_symbol (SCM symbol, int pos,
|
|
|
|
|
|
SCM bad_value) SCM_NORETURN;
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_wrong_type_arg_msg (const char *subr, int pos,
|
|
|
|
|
|
SCM bad_value, const char *sz) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_memory_error (const char *subr) SCM_NORETURN;
|
|
|
|
|
|
SCM_API void scm_misc_error (const char *subr, const char *message,
|
|
|
|
|
|
SCM args) SCM_NORETURN;
|
2008-05-14 05:20:47 +02:00
|
|
|
|
SCM_INTERNAL void scm_init_error (void);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2001-06-07 21:12:19 +00:00
|
|
|
|
#endif /* SCM_ERROR_H */
|
2000-03-19 19:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
|
c-file-style: "gnu"
|
|
|
|
|
|
End:
|
|
|
|
|
|
*/
|