1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +02:00
Commit graph

3366 commits

Author SHA1 Message Date
Mikael Djurfeldt
0af43c4aa5 *** empty log message *** 2000-03-12 00:55:12 +00:00
Mikael Djurfeldt
38eca29bf0 *** empty log message *** 2000-03-12 00:36:02 +00:00
Mikael Djurfeldt
053f9faad7 * readline.c (match_paren): Bugfix: First arg to select is not
number of descriptors but the number of the highest descriptor +
1.

* readline.c (scm_init_readline): Added new arg to scm_init_mutex.
2000-03-12 00:35:00 +00:00
Mikael Djurfeldt
dd276c8eb3 * iselect.c (coop_timout_qinsert): Moved to coop.c 2000-03-12 00:34:19 +00:00
Mikael Djurfeldt
df26ebfdc9 * coop.c: #include <errno.h>
(coop_timeout_qinsert): Moved here from iselect.c
(coop_new_mutex_init, coop_new_condition_variable_init): New
functions.  The strange names are temporary.  Use scm_mutex_init
and scm_cond_init instead.
(coop_mutex_trylock): New function.  Uses errno.h:EBUSY.  errno.h
is ANSI C, but should we check for individual error codes in
configure.in?
(coop_condition_variable_timed_wait_mutex): New function.
(coop_key_create, coop_setspecific, coop_getspecific,
coop_key_delete,
2000-03-12 00:33:56 +00:00
Mikael Djurfeldt
32e738bb26 * coop-defs.h (scm_mutex_trylock): New macro: alias for
coop_mutex_trylock.
(scm_cond_init): Changed definition to
coop_new_condition_variable_init.
(scm_mutex_init): Changed definition to	coop_new_mutex_init.
2000-03-12 00:33:35 +00:00
Mikael Djurfeldt
32e1616c22 *** empty log message *** 2000-03-11 23:38:51 +00:00
Mikael Djurfeldt
293bb454ed * pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
2000-03-11 23:38:33 +00:00
Mikael Djurfeldt
d266d03a0b * tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
Layout cleanups.
2000-03-11 15:10:34 +00:00
Mikael Djurfeldt
a54367e2da * objects.h (SCM_CLASS_FLAGS, SCM_OBJ_CLASS_FLAGS,
SCM_SET_CLASS_INSTANCE_SIZE), struct.h (SCM_STRUCT_VTABLE_DATA),
proc.h (SCM_CLOSCAR): SCM_ASSCM/WORD fixes.
2000-03-11 15:10:16 +00:00
Mikael Djurfeldt
9374451b7e * eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
dealing with ilocs.
2000-03-11 15:09:33 +00:00
Greg J. Badros
d5c390692d *** empty log message *** 2000-03-09 23:00:18 +00:00
Greg J. Badros
8a525303c7 * numbers.c (scm_copy_big_dec, scm_copy_smaller, scm_big_ior,
scm_big_xor, scm_big_and, scm_big_test): Added new lowlevel bignum
logical functions from SCM.

(logand, logior, logxor, logtest, logbit?): Extended scheme
logical functions to use bignums from SCM.

(lognot): Removed call to `SCM_VALIDATE_INUM' that prevented
lognot from using bignums.
2000-03-09 22:58:32 +00:00
Greg J. Badros
3ef7e3a14a Added a comment re: a warning. 2000-03-09 21:53:59 +00:00
Greg J. Badros
3e892913a7 *** empty log message *** 2000-03-09 21:49:05 +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
7ac030d6de *** empty log message *** 2000-03-09 18:59:38 +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
df8bb2dc39 *** empty log message *** 2000-03-09 16:21:55 +00:00
Greg J. Badros
26ec032dc5 * slib.scm: Back-out change to software-type -- renamed
slib:software-type to software-type, and leave it non-public.
2000-03-09 16:05:33 +00:00
Greg J. Badros
76d941243e *** empty log message *** 2000-03-09 16:01:27 +00:00
Greg J. Badros
1c537018aa * readline.c: scm_validate.h renamed to validate.h. 2000-03-09 16:00:42 +00:00
Greg J. Badros
e6a9f3c474 *** empty log message *** 2000-03-08 18:49:10 +00:00
Greg J. Badros
aba2031abc * readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
of readset.
2000-03-08 18:43:47 +00:00
Greg J. Badros
f635d2d4d6 *** empty log message *** 2000-03-08 18:17:03 +00:00
Greg J. Badros
3dd632c9ae * numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
various logXXX primitives.  Thanks Eric Moore!
2000-03-08 18:16:50 +00:00
Greg J. Badros
10d7b66590 s/'x/'foo/ in two places that I missed before. 2000-03-07 18:45:41 +00:00
Greg J. Badros
3fcc798d33 Fix example to use 'foo, not 'x, as symbol 'x does not seem to cause
the problem.
2000-03-07 16:57:03 +00:00
Greg J. Badros
9eaa7fb6c6 *** empty log message *** 2000-03-07 16:07:43 +00:00
Greg J. Badros
8849a2449b * run-test, remaining-docs-needed: Added these scripts. The
second one is only temporary until the docstring additions are
complete.   run-test may best live on, but is here mostly for
convenience and awareness for now.
2000-03-07 16:06:13 +00:00
Greg J. Badros
94a5efac15 * hash.c: Docs, minor cleanup patch from Dirk Herrman. 2000-03-07 16:04:36 +00:00
Greg J. Badros
49673698ed *** empty log message *** 2000-03-03 00:12:02 +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
Greg J. Badros
ac802f5ad4 * Makefile.am: Rename scm_validate.h to validate.h. 2000-03-03 00:10:35 +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
417bdef8a5 *** empty log message *** 2000-03-02 23:41:30 +00:00
Greg J. Badros
d550d22a7d * hashtab.c: Improved documentation for lots of functions. Added
handwritten docs for `hash-fold'.
2000-03-02 23:41:22 +00:00
Greg J. Badros
8507b88c00 * list.c: Added hand-written docs for `del{q,v,ete}1!'. 2000-03-02 23:14:28 +00:00
Greg J. Badros
26a760c65e *** empty log message *** 2000-03-02 20:56:07 +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
Greg J. Badros
e510ed373f *** empty log message *** 2000-03-02 20:44:28 +00:00
Greg J. Badros
5b52885cda * boot-9.scm: Drop unused definition of sfx function -- thanks
Dirk Hermann!
2000-03-02 20:44:19 +00:00
Greg J. Badros
0f202d3f36 *** empty log message *** 2000-03-01 21:18:35 +00:00
Greg J. Badros
ed11b876c8 * streams.scm: Doc patch from Richard Kim, using MIT Scheme as
source of the numerous very short changes.
2000-03-01 20:21:24 +00:00
Jim Blandy
af94609f1f (Characters): Fix type of SCM_MAKICHR argument. 2000-02-28 20:58:59 +00:00
Greg J. Badros
898942f8a3 *** empty log message *** 2000-02-19 20:40:46 +00:00
Greg J. Badros
564478fd3b * ports.c: Made set-port-column!' and set-port-line!' each
return SCM_UNSPECIFIED instead of a (not-scheme-object) integer
that caused a seg fault.  Also fixed `set-port-column!'s
docstring.  Thanks Han-Wen Nienhuys for finding the bug!
2000-02-19 20:21:19 +00:00
Greg J. Badros
84a3df2cf2 *** empty log message *** 2000-02-14 03:13:48 +00:00
Greg J. Badros
b450f07086 * arbiters.c, eq.c, gc.c, guardians.c, list.c, ports.c, print.c,
regex-posix.c, scmsigs.c, stime.c, strings.c, variable.c, stime.c,
strings.c, variable.c:  Added lots of documentation, cleaned up
some existing documentation.  Occasionally changed formal params
to match docs.  Also folded an #ifdef into the inners of a
primitive instead of having two copies of the primitive
(`get-internal-real-time', from stime.c)
2000-02-14 03:13:19 +00:00
Greg J. Badros
92540145dd *** empty log message *** 2000-02-14 02:04:20 +00:00