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

2074 commits

Author SHA1 Message Date
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
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
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
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
3f557de68c *** empty log message *** 2000-02-13 17:41:36 +00:00
Greg J. Badros
fa787a5897 * guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
just execing guile-func-name-check.  Thanks Michael Livshin!
2000-02-13 17:41:10 +00:00
Greg J. Badros
ddcccdb31a *** empty log message *** 2000-02-13 04:18:07 +00:00
Greg J. Badros
11a5232f86 * guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
dead code.  Patch from Michael Livshin.

* guile-doc-snarf.in: Tweak to work with Sun/HP sh.  Patch from
Michael Livshin.
2000-02-10 19:45:10 +00:00
Gary Houston
720e869247 2000-02-09 Gary Houston <ghouston@arglist.com>
* init.c (scm_init_standard_ports): when stdout is a tty, make the
	current-output-port unbuffered by default.  this is less confusing
	for interactive use.  it was line-buffered because of a
	performance problem with unbuffered ports, but I think it will be
	OK now.
2000-02-09 21:25:34 +00:00
Gary Houston
43ff3170df * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS
is not defined.

	* stime.c (scm_localtime, scm_mktime): if neither HAVE_TM_ZONE nor
	HAVE_TZNAME are defined, use an empty string instead of giving two
	spurious compile-time errors.
2000-02-08 22:16:15 +00:00
Greg J. Badros
4ba473028c *** empty log message *** 2000-02-08 22:01:14 +00:00
Greg J. Badros
bfc46627ce * ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
Thanks Richard!
2000-02-08 21:59:19 +00:00
Greg J. Badros
09a617f7c0 *** empty log message *** 2000-02-07 17:09:15 +00:00
Greg J. Badros
07f7f249e5 * macros.c: Doc patches from Richard Kim. Pasted from scm.texi. 2000-02-07 17:08:07 +00:00
Greg J. Badros
9dbcf01033 *** empty log message *** 2000-02-07 04:30:25 +00:00
Greg J. Badros
d7588e5481 * pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
(which is GNU GPL'd).
2000-02-07 04:30:17 +00:00
Gary Houston
bd9e24b301 * strings.h: don't use SCM_P. don't include <string.h>.
* error.c, gh_data.c, ports.c, script.c, strop.c: include <string.h>.

	* strings.c (scm_string_ref): make the 2nd argument compulsory.
	previously it defaulted to zero for no good reason that I can see.
	use a local variable for SCM_INUM (k).  replace
	SCM_VALIDATE_INUM_DEF with SCM_VALIDATE_INUM_COPY.

	(scm_makfromstr): cosmetic changes.

	(scm_string): Accept only chars in the list, not strings, for
	conformance to R5RS (particularly for list->string, which is
	supposed to be the inverse of string->list.)  remove
	SCM_DEFER_INTS/SCM_ALLOW_INTS, which is unnecessary since
	scm_makstr handles the cell allocation.  when reporting wrong-type
	arg, don't report the position as 1.

	* posix.c (scm_init_posix): intern PIPE_BUF if it's defined.

	* boot-9.scm (find-and-link-dynamic-module): pass strings, not symbols,
	to string-append.
2000-01-31 18:29:56 +00:00
Gary Houston
ae1b098b07 * posix.c (scm_pipe): rewrote the docstring.
(and fixed a bug in the scm_select change)
2000-01-29 19:50:36 +00:00
Gary Houston
28d77376bc * filesys.c (scm_select, retrieve_select_type, get_element,
fill_select_type, set_element): modified so that Scheme
	"select" tests port buffers for the ability to provide input
	or accept output.  Previously only the underlying file descriptors
	were checked.  Rewrote the docstring.

	* expect.scm (expect): don't call char-ready? before expect-select,
	since select now checks port buffers itself.  don't bother to check
	the time first either, since expect-select does it.
2000-01-29 18:04:38 +00:00
Greg J. Badros
7f1497ce18 *** empty log message *** 2000-01-27 18:16:35 +00:00
Greg J. Badros
5ffe9968de * vectors.c, symbols.c, strorder.c: Documentation cut and pasted
from Gregg Reynolds.  Thanks Gregg!
2000-01-27 18:15:56 +00:00
Greg J. Badros
2288ff9b51 *** empty log message *** 2000-01-27 18:03:53 +00:00