Dirk Herrmann
e4b265d817
* Avoid redundant casting of argument numbers to char* and vice versa.
2001-04-10 07:57:05 +00:00
Dirk Herrmann
b3fcac341b
* __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
...
SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Don't call scm_wta, call
scm_wrong_type_arg instead.
(SCM_WNA): Deprecated.
* error.[ch] (scm_wta): Deprecated.
* numbers.c (s_i_log): Minor comment fix.
* read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
scm_make_shared_array, scm_transpose_array, scm_enclose_array,
scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
wrong-num-args or misc errors.
* unif.c (scm_make_shared_array, scm_transpose_array,
scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
Validate the rest argument (note: this is only done when guile is
built with SCM_DEBUG_REST_ARGUMENT=1)
(scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.
* validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
SCM_VALIDATE_NUMBER_DEF_COPY): Deprecated.
2001-03-17 13:34:21 +00:00
Dirk Herrmann
68baa7e7f8
* validate.h (SCM_WRONG_NUM_ARGS): Call scm_error_num_args_subr
...
instead of scm_wrong_num_args.
* coop-threads.c: Don't include libguile/strings.h. (Was only
needed for former implementation of SCM_WRONG_NUM_ARGS.)
* debug.c (scm_m_start_stack): Don't use SCM_ASSERT to check for
wrong-num-args errors.
2001-03-17 12:20:36 +00:00
Martin Grabmüller
e87a03fce7
* validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
...
* strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
(SCM_OPOUTSTRPORTP): New predicate macros.
(scm_open_input_string, scm_open_output_string),
(scm_get_output_string): New prototypes.
* strports.c (scm_open_input_string, scm_open_output_string),
(scm_get_output_string): New procedures (SRFI-6 compliant).
Made scm_tc16_strport non-static.
2001-03-15 11:24:45 +00:00
Dirk Herrmann
276dd6775c
* Eliminate another couple of calls to scm_wta.
2001-03-04 22:48:13 +00:00
Dirk Herrmann
23deee8161
* Minor fixes to error checking macros.
2001-02-28 16:58:12 +00:00
Dirk Herrmann
30ea841d0c
* Separate the handling of OPEN flags between ports and directories.
2001-01-24 00:02:43 +00:00
Gary Houston
60d02d0914
* validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): new macro.
...
* ioext.c (scm_read_string_x_partial, scm_read_delimited_x),
socket.c (scm_recvfrom): use the new macro, plus minor docstring
changes.
* ioext.c (scm_read_string_x_partial): don't crash if -1 is supplied
for fdes. if current input port is used, check that it's a file
port.
2001-01-08 23:10:06 +00:00
Marius Vollmer
e8a46ba8c3
* validate.h (SCM_VALIDATE_NUMBER): New.
2001-01-06 18:46:48 +00:00
Keisuke Nishida
398d8ee17e
Some GOOPS cleanup.
2000-12-16 20:25:08 +00:00
Keisuke Nishida
e841c3e0c0
Smob-related creanup.
2000-12-08 17:32:56 +00:00
Dirk Herrmann
395d8627b9
* This patch belongs to the previous one, it deprecates SCM_VALIDATE_RWSTRING.
2000-11-22 09:16:06 +00:00
Dirk Herrmann
a6d9e5abe5
* Change a couple of functions to accept either symbols or strings only.
...
* Get rid of remainig uses of SCM_LENGTH etc.
2000-10-30 11:42:26 +00:00
Dirk Herrmann
d1ca2c6423
* Some more work to get rid of SCM_LENGTH
...
* Eliminated some cell type bit fiddling
* Various minor changes
2000-10-25 11:01:03 +00:00
Dirk Herrmann
9fd38a3d14
* Made some functions not accept symbols as input parameters any more.
...
* Replaced some calls to SCM_LENGTH.
2000-10-09 16:27:24 +00:00
Dirk Herrmann
405aaef932
* Eliminated all remaining calls to SCM_CHARS.
2000-09-26 21:53:49 +00:00
Dirk Herrmann
86c991c2a2
* Replaced SCM_CHARS with SCM_STRING_CHARS or SCM_SYMBOL_CHARS.
2000-09-22 17:17:55 +00:00
Mikael Djurfeldt
ee1a1c2066
* validate.h (SCM_VALIDATE_NUMBER_DEF_COPY): New macro.
2000-09-03 21:56:03 +00:00
Dirk Herrmann
fdf25853e1
* Fix range checks of SCM_VALIDATE* macros.
2000-06-30 09:48:25 +00:00
Dirk Herrmann
9a09deb1c3
* Removed SCM_TRUE_P since it may get confused with !SCM_FALSEP.
2000-06-05 11:39:46 +00:00
Dirk Herrmann
af45e3b06a
* Unified some rest argument checking and handling.
2000-05-18 08:47:52 +00:00
Dirk Herrmann
f5f2dcffbe
* Wrapped deprecated code between #if (SCM_DEBUG_DEPRECATED == 0) #endif.
...
* Replace use of deprecated macros SCM_INPORTP, SCM_OUTPORTP, SCM_ICHRP.
2000-05-15 11:47:48 +00:00
Greg J. Badros
120d4924ed
* validate.h: Do not cast to (unsigned) in SCM_VALIDATE_INUM_RANGE
...
when testing high-end of the range. Mikael Djurfeldt noticed this
anomaly -- thanks Mikael!
2000-04-18 15:23:11 +00:00
Mikael Djurfeldt
2891588bee
Renamed SCM_VALIDATE_REAL_COPY --> SCM_VALIDATE_REAL_NUMBER.
2000-04-17 03:17:02 +00:00
Mikael Djurfeldt
1a94d96127
* validate.h (SCM_VALIDATE_INUM_RANGE_COPY,
...
SCM_VALIDATE_REAL_COPY): New macros.
2000-04-17 02:55:00 +00:00
Mikael Djurfeldt
7642eb4b33
* validate.h (SCM_VALIDATE_INUM_RANGE_COPY): New macro.
2000-04-16 23:01:51 +00:00
Mikael Djurfeldt
39bcc76e45
* validate.h (SCM_VALIDATE_INPUT_PORT, SCM_VALIDATE_OUTPUT_PORT):
...
New macros.
Cleanup of code layout.
2000-04-15 19:30:16 +00:00
Michael Livshin
e94e3f21d6
* async.[ch]: unexpose low-level async access macros (thanks to
...
Dirk Herrmann).
* validate.h: move async validation macros to async.c (nobody else
needs them anyway), and rename them.
2000-04-05 15:28:28 +00:00
Dirk Herrmann
54778cd312
Lots of fixes to make guile (at some time) compile with strict typing.
2000-04-03 08:47:51 +00:00
Michael Livshin
89e00824a0
* *.[hc]: add Emacs magic at the end of file, to ensure GNU
...
indentation style.
2000-03-19 19:01:16 +00:00
Greg J. Badros
cd2feccad5
* validate.h, scm_validate.h: Added the former, as a renamed
...
version of the latter with SCM_ASSERT_TYPE used in
SCM_MAKE_VALIDATE (instead of just SCM_ASSERT)
2000-03-03 00:11:46 +00:00