Dirk Herrmann
e4b265d817
* Avoid redundant casting of argument numbers to char* and vice versa.
2001-04-10 07:57:05 +00:00
Martin Grabmüller
1e6808ea20
Correct, update, improve and clean up a lot of docstrings in order to make
...
the documentation much more consistent.
2001-04-03 13:19:05 +00:00
Dirk Herrmann
be54b15d85
* Replace function scm_makstr with new function scm_allocate_string.
2001-03-22 12:52:03 +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
Mikael Djurfeldt
e6e2e95aa5
* _scm.h: Removed #include <errno.h>.
...
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of
errno variable (can be a macro on some systems, for example when
using linux libc with threads).
* error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
#include <errno.h> in these 20 out of 100 files.
2001-03-10 16:56:09 +00:00
Keisuke Nishida
783e777478
Remove #include <stdio.h>. Add #include <string.h>.
2001-03-09 23:33:41 +00:00
Dirk Herrmann
276dd6775c
* Eliminate another couple of calls to scm_wta.
2001-03-04 22:48:13 +00:00
Dirk Herrmann
db4b4ca64f
* Eliminate some calls to scm_wta.
2001-03-04 17:09:34 +00:00
Martin Grabmüller
c7eb87615a
(scm_bit_count, scm_bit_set_star_x): Added texinfo markup.
2001-02-17 11:25:34 +00:00
Keisuke Nishida
00ffa0e7d6
New functions: scm_c_make_vector, scm_c_make_hash_table.
2001-02-02 04:56:25 +00:00
Mikael Djurfeldt
b8446ce883
* unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays.
2001-01-31 15:18:47 +00:00
Keisuke Nishida
e841c3e0c0
Smob-related creanup.
2000-12-08 17:32:56 +00:00
Dirk Herrmann
38ae064c6e
* Use scm_mem2symbol or scm_str2symbol to create symbol objects.
2000-12-08 17:08:34 +00:00
Dirk Herrmann
5b9eb8ae16
* Deprecated SCM_LENGTH_MAX.
2000-11-23 15:26:24 +00:00
Dirk Herrmann
6a0476fd11
* SCM_SETCHARS deprecated.
2000-11-23 13:54:49 +00:00
Dirk Herrmann
9377887701
* Deprecated SCM_SETLENGTH.
2000-11-23 08:59:22 +00:00
Marius Vollmer
8dc9439fc6
* alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
...
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c,
environments.c, eq.c, error.c, eval.c, evalext.c, feature.c,
filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c,
hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c,
list.c, load.c, macros.c, modules.c, net_db.c, numbers.c,
objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c,
print.c, procprop.c, procs.c, properties.c, ramap.c, random.c,
read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c,
socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c,
strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c,
tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c,
version.c, vports.c, weaks.c: Makes sure the snarfer output
inclusion is disabled when the snarfer is run on the file. Thanks
to Lars J. Aas!
* Makefile.am: Install guile-procedures.txt in version-specific
directory to enable multiple installed guile versions. Suggested
by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-11-17 16:25:05 +00:00
Dirk Herrmann
a3a329390f
* Remove the code that implemented the SCM_HUGE_LENGTH trick.
2000-10-30 17:47:52 +00:00
Dirk Herrmann
74014c46ff
* Replaced some calls to SCM_LENGTH.
...
* Use scm_uniform_vector_length to determine lengths generically.
* Eliminate some dummy type dispatch code.
* Fix an array access but in scm_ra2contig.
2000-10-11 12:24:43 +00:00
Dirk Herrmann
322ac0c5cc
* Eliminated all calls to SCM_UCHARS.
2000-09-26 22:15:13 +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
Neil Jerram
ec57ce2eca
* Docstring updates for scm_uniform_vector_ref and scm_array_set_x.
2000-09-02 23:15:04 +00:00
Dirk Herrmann
685c0d7116
* Eliminated use of SCM_ASSERT to check for range errors.
...
* Fix some error reporting code in list.c
* Added some test cases.
2000-06-30 10:46:35 +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
44e4775494
* Fixed some parameter checks. Thanks to Dale P. Smith.
2000-05-20 10:07:44 +00:00
Dirk Herrmann
af45e3b06a
* Unified some rest argument checking and handling.
2000-05-18 08:47:52 +00:00
Dirk Herrmann
eb42e2f03a
More distinguished handling of real and complex values.
2000-05-10 12:34:43 +00:00
Dirk Herrmann
f8de44c154
* numbers.c (scm_logtest, scm_division): Reordered dispatch sequence.
...
* removed calls to deprecated scm_makdbl.
2000-05-02 16:41:20 +00:00
Mikael Djurfeldt
a059974535
* Makefile.am (DEFS): Added. automake adds -I options to DEFS,
...
and we don't want that.
(INCLUDES): Removed all -I options except for the root source
directory and the root build directory.
* *.*: Change includes so that they always use the "prefixes"
libguile/, qt/, guile-readline/, or libltdl/.
(Thanks to Tim Mooney.)
2000-04-21 14:16:44 +00:00
Dirk Herrmann
baa702c81f
Fixed a stupid bug introduced with the last patch. Sorry.
2000-04-18 15:49:34 +00:00
Dirk Herrmann
fee7ef83a3
Fixed some SCM/scm_bits_t mixups.
2000-04-18 14:12:07 +00:00
Mikael Djurfeldt
e2d373365b
* unif.c, unif.h (shared-array-root, shared-array-offset,
...
shared-array-increments): New primitives.
2000-04-13 03:44:51 +00:00
Dirk Herrmann
4260a7fced
Lots of fixes with respect to strict typing.
2000-04-04 12:13:41 +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
Dirk Herrmann
ba11fd4cb6
Only include root.h where it is actually needed.
2000-03-18 08:44:04 +00:00
Dirk Herrmann
7ab3fdd51f
Only include strings.h where it is actually needed.
2000-03-17 18:11:58 +00:00
Dirk Herrmann
003d1fd046
Only include vectors.h in those files, where it is actually needed.
2000-03-17 15:23:03 +00:00
Mikael Djurfeldt
bc86da5de2
* __scm.h eq.c, eval.c, gc.c, hc.h, gh_data, hash.c, numbers.c,
...
numbers.h, objects.c, ramap.c, random.c, unif.c, unif.h: Extensive
rewrite of handling of real and complex numbers.
(SCM_FLOATS, SCM_SINGLES): These #ifdef conditionals have been
removed along with the support for floats. (Float vectors are
still supported.)
* unif.c (scm_makflo): Removed.
2000-03-14 06:42:56 +00:00
Mikael Djurfeldt
f12677062e
*** empty log message ***
2000-03-12 18:30:33 +00:00
Mikael Djurfeldt
4d45e7b69a
* stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):
...
Renamed from SCMWORD.
2000-03-12 17:52:18 +00:00
Mikael Djurfeldt
413cb56ff4
* async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,
...
feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h,
hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c,
objects.h, options.c, pairs.h, ports.c, ports.h, print.c,
procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c,
stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h,
throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c,
weaks.h (SCM_SCM, SCM_BITS, SCM_CARBITS): Renamed from
SCM_ASSCM, SCM_ASWORD, SCM_CARW).
2000-03-12 17:00:58 +00:00
Greg J. Badros
41b0806d3e
* vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
...
eliminating some warnings.
* unif.c, strports.c, print.c, options.c: Fix some warnings on
mis-use of SCM/long
* gc.c, gc.h: Added scm_return_first_int(), and added comment re:
what the scm_return_first* functions do.
2000-03-09 21:48:25 +00:00
Greg J. Badros
c209c88e54
*.[ch]: make a distinction between SCM as a generic
...
name for a Scheme object (now a void*), and SCM as 32 bit word for
storing tags and immediates (now a long int). Introduced
SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious
code in the process: arbiter.c (use macros), unif.c (scm_array_p),
2000-03-09 18:58:58 +00:00
Greg J. Badros
b6791b2e94
* error.h, error.c: Added `scm_wrong_type_arg_msg' to support
...
displaying the expected type. Use SCM_LISTn in a couple places
instead of scm_cons-ing by hand.
* __scm.h: Added SCM_ASSERT_TYPE macro.
* 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)
* Makefile.am: Rename scm_validate.h to validate.h.
* *.c, *.h: Include validate.h, not scm_validate.h (old name's
prefix was superfluous).
2000-03-03 00:09:54 +00:00
Greg J. Badros
7866a09b5b
* list.c: Moved append docs to append! Thanks Dirk Hermann. Also,
...
added append docs from R4RS.
* strings.c: Docstring typo fix, + eliminate unneeded IMP tests.
Thanks Dirk Hermann!
* chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and
deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann!
* *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout.
Drop use of SCM_P for function prototypes... assume an ANSI C
compiler. Thanks Dirk Hermann!
2000-03-02 20:54:43 +00:00
Mikael Djurfeldt
b380b88547
* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,
...
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c,
keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c,
objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c,
ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c,
stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c,
symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c,
weaks.c: Converted docstrings to ANSI C format.
2000-01-18 11:24:03 +00:00
Greg J. Badros
5d2d2ffca7
* dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,
...
net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR
where possible.
* symbols.c (scm_sysintern0): Fixed the function name in a
scm_misc_error invocation.
* print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and
use scm_return_first to ward off latent GC bug that Mikael caught.
* async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't
used before but should've been.
2000-01-11 23:56:47 +00:00
Greg J. Badros
3b3b36ddb7
* *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*
...
macros and SCM_DEFINE macros to match GNU coding standards.
2000-01-05 19:25:37 +00:00
Greg J. Badros
a1ec69163d
*.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.
2000-01-05 19:05:23 +00:00