Gary Houston [Sun, 12 Mar 2000 16:32:19 +0000 (16:32 +0000)]
mention a stdout port buffer change from a while ago.
Mikael Djurfeldt [Sun, 12 Mar 2000 16:10:31 +0000 (16:10 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 16:10:02 +0000 (16:10 +0000)]
* numbers.h (SCM_SRS, SCM_INUM): Corrected SCM_ASSCM/ASWORD fixes.
Mikael Djurfeldt [Sun, 12 Mar 2000 16:09:46 +0000 (16:09 +0000)]
* alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
tags.h: Fixed copyright notices.
* struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
Mikael Djurfeldt [Sun, 12 Mar 2000 16:09:34 +0000 (16:09 +0000)]
* struct.c, coop-threads.c: SCM_ASSCM/ASWORD fixes.
Mikael Djurfeldt [Sun, 12 Mar 2000 16:08:24 +0000 (16:08 +0000)]
* alist.c, eval.c, net_db.c, posix.c, print.c, snarf.h, struct.c,
tags.h: Fixed copyright notices.
Mikael Djurfeldt [Sun, 12 Mar 2000 16:03:00 +0000 (16:03 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 16:02:46 +0000 (16:02 +0000)]
* readline.c (current_input_getc): Don't pass int values through
SCM variables.
Marius Vollmer [Sun, 12 Mar 2000 15:25:41 +0000 (15:25 +0000)]
*** empty log message ***
Marius Vollmer [Sun, 12 Mar 2000 15:25:16 +0000 (15:25 +0000)]
* init.c (scm_standard_stream_to_port): Check whether the file
descriptor is valid and substitute "/dev/null" when not.
Marius Vollmer [Sun, 12 Mar 2000 15:24:36 +0000 (15:24 +0000)]
Docstring clarification for scm_registered_modules.
Mikael Djurfeldt [Sun, 12 Mar 2000 14:28:25 +0000 (14:28 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 14:26:59 +0000 (14:26 +0000)]
Reverted recent change to scm_mutex_init: now backward compatible
again.
Mikael Djurfeldt [Sun, 12 Mar 2000 01:48:48 +0000 (01:48 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 01:48:34 +0000 (01:48 +0000)]
* acconfig.h (HAVE_STRUCT_TIMESPEC): Added.
Mikael Djurfeldt [Sun, 12 Mar 2000 01:48:27 +0000 (01:48 +0000)]
* configure.in (ac_cv_struct_timespec): Added test for struct
timespec.
Mikael Djurfeldt [Sun, 12 Mar 2000 01:48:04 +0000 (01:48 +0000)]
* coop.c (coop_condition_variable_timed_wait_mutex): Use ETIMEDOUT
instead of ETIME.
Mikael Djurfeldt [Sun, 12 Mar 2000 01:47:53 +0000 (01:47 +0000)]
* coop-defs.h (struct timespec): Conditionally defined.
Mikael Djurfeldt [Sun, 12 Mar 2000 00:57:16 +0000 (00:57 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 00:55:12 +0000 (00:55 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 00:36:02 +0000 (00:36 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 12 Mar 2000 00:35:00 +0000 (00:35 +0000)]
* 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.
Mikael Djurfeldt [Sun, 12 Mar 2000 00:34:19 +0000 (00:34 +0000)]
* iselect.c (coop_timout_qinsert): Moved to coop.c
Mikael Djurfeldt [Sun, 12 Mar 2000 00:33:56 +0000 (00:33 +0000)]
* 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,
Mikael Djurfeldt [Sun, 12 Mar 2000 00:33:35 +0000 (00:33 +0000)]
* 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.
Mikael Djurfeldt [Sat, 11 Mar 2000 23:38:51 +0000 (23:38 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sat, 11 Mar 2000 23:38:33 +0000 (23:38 +0000)]
* pairs.h (SCM_SETAND_CAR, SCM_SETAND_CDR, SCM_SETOR_CAR,
SCM_SETOR_CDR): Corrected SCM_ASSCM/WORD fixes.
Mikael Djurfeldt [Sat, 11 Mar 2000 15:10:34 +0000 (15:10 +0000)]
* tags.h (SCM_VOIDP_TEST): Renamed from VOIDP_TEST.
Layout cleanups.
Mikael Djurfeldt [Sat, 11 Mar 2000 15:10:16 +0000 (15:10 +0000)]
* 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.
Mikael Djurfeldt [Sat, 11 Mar 2000 15:09:33 +0000 (15:09 +0000)]
* eval.c (scm_lookupcar1): Inserted SCM_ASWORD in expressions
dealing with ilocs.
Greg J. Badros [Thu, 9 Mar 2000 23:00:18 +0000 (23:00 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 9 Mar 2000 22:58:32 +0000 (22:58 +0000)]
* 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.
Greg J. Badros [Thu, 9 Mar 2000 21:53:59 +0000 (21:53 +0000)]
Added a comment re: a warning.
Greg J. Badros [Thu, 9 Mar 2000 21:49:05 +0000 (21:49 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 9 Mar 2000 21:48:25 +0000 (21:48 +0000)]
* 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.
Greg J. Badros [Thu, 9 Mar 2000 18:59:38 +0000 (18:59 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 9 Mar 2000 18:58:58 +0000 (18:58 +0000)]
*.[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),
Greg J. Badros [Thu, 9 Mar 2000 16:21:55 +0000 (16:21 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 9 Mar 2000 16:05:33 +0000 (16:05 +0000)]
* slib.scm: Back-out change to software-type -- renamed
slib:software-type to software-type, and leave it non-public.
Greg J. Badros [Thu, 9 Mar 2000 16:01:27 +0000 (16:01 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 9 Mar 2000 16:00:42 +0000 (16:00 +0000)]
* readline.c: scm_validate.h renamed to validate.h.
Greg J. Badros [Wed, 8 Mar 2000 18:49:10 +0000 (18:49 +0000)]
*** empty log message ***
Greg J. Badros [Wed, 8 Mar 2000 18:43:47 +0000 (18:43 +0000)]
* readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
of readset.
Greg J. Badros [Wed, 8 Mar 2000 18:17:03 +0000 (18:17 +0000)]
*** empty log message ***
Greg J. Badros [Wed, 8 Mar 2000 18:16:50 +0000 (18:16 +0000)]
* numbers.c: Use SCM_VALIDATE_LONG_COPY, and longs, not ints, in
various logXXX primitives. Thanks Eric Moore!
Greg J. Badros [Tue, 7 Mar 2000 18:45:41 +0000 (18:45 +0000)]
s/'x/'foo/ in two places that I missed before.
Greg J. Badros [Tue, 7 Mar 2000 16:57:03 +0000 (16:57 +0000)]
Fix example to use 'foo, not 'x, as symbol 'x does not seem to cause
the problem.
Greg J. Badros [Tue, 7 Mar 2000 16:07:43 +0000 (16:07 +0000)]
*** empty log message ***
Greg J. Badros [Tue, 7 Mar 2000 16:06:13 +0000 (16:06 +0000)]
* 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.
Greg J. Badros [Tue, 7 Mar 2000 16:04:36 +0000 (16:04 +0000)]
* hash.c: Docs, minor cleanup patch from Dirk Herrman.
Greg J. Badros [Fri, 3 Mar 2000 00:12:02 +0000 (00:12 +0000)]
*** empty log message ***
Greg J. Badros [Fri, 3 Mar 2000 00:11:46 +0000 (00:11 +0000)]
* 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)
Greg J. Badros [Fri, 3 Mar 2000 00:10:35 +0000 (00:10 +0000)]
* Makefile.am: Rename scm_validate.h to validate.h.
Greg J. Badros [Fri, 3 Mar 2000 00:09:54 +0000 (00:09 +0000)]
* 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).
Greg J. Badros [Thu, 2 Mar 2000 23:41:30 +0000 (23:41 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 2 Mar 2000 23:41:22 +0000 (23:41 +0000)]
* hashtab.c: Improved documentation for lots of functions. Added
handwritten docs for `hash-fold'.
Greg J. Badros [Thu, 2 Mar 2000 23:14:28 +0000 (23:14 +0000)]
* list.c: Added hand-written docs for `del{q,v,ete}1!'.
Greg J. Badros [Thu, 2 Mar 2000 20:56:07 +0000 (20:56 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 2 Mar 2000 20:54:43 +0000 (20:54 +0000)]
* 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!
Greg J. Badros [Thu, 2 Mar 2000 20:44:28 +0000 (20:44 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 2 Mar 2000 20:44:19 +0000 (20:44 +0000)]
* boot-9.scm: Drop unused definition of sfx function -- thanks
Dirk Hermann!
Greg J. Badros [Wed, 1 Mar 2000 21:18:35 +0000 (21:18 +0000)]
*** empty log message ***
Greg J. Badros [Wed, 1 Mar 2000 20:21:24 +0000 (20:21 +0000)]
* streams.scm: Doc patch from Richard Kim, using MIT Scheme as
source of the numerous very short changes.
Jim Blandy [Mon, 28 Feb 2000 20:58:59 +0000 (20:58 +0000)]
(Characters): Fix type of SCM_MAKICHR argument.
Greg J. Badros [Sat, 19 Feb 2000 20:40:46 +0000 (20:40 +0000)]
*** empty log message ***
Greg J. Badros [Sat, 19 Feb 2000 20:21:19 +0000 (20:21 +0000)]
* 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!
Greg J. Badros [Mon, 14 Feb 2000 03:13:48 +0000 (03:13 +0000)]
*** empty log message ***
Greg J. Badros [Mon, 14 Feb 2000 03:13:19 +0000 (03:13 +0000)]
* 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)
Greg J. Badros [Mon, 14 Feb 2000 02:04:20 +0000 (02:04 +0000)]
*** empty log message ***
Greg J. Badros [Mon, 14 Feb 2000 02:04:14 +0000 (02:04 +0000)]
* slib.scm: Rename software-type to slib:software-type and make it
public.
* r4rs.scm: Added documentation; largely cut and pasted from R4RS
info pages.
Greg J. Badros [Mon, 14 Feb 2000 01:49:48 +0000 (01:49 +0000)]
* common-list.scm: Added documentation; largely cut and pasted
from slib docs.
Greg J. Badros [Sun, 13 Feb 2000 17:41:36 +0000 (17:41 +0000)]
*** empty log message ***
Greg J. Badros [Sun, 13 Feb 2000 17:41:10 +0000 (17:41 +0000)]
* guile-doc-snarf.in: Use ${AWK} -f guile-func-name-check, not
just execing guile-func-name-check. Thanks Michael Livshin!
Greg J. Badros [Sun, 13 Feb 2000 04:18:07 +0000 (04:18 +0000)]
*** empty log message ***
Mikael Djurfeldt [Fri, 11 Feb 2000 04:48:18 +0000 (04:48 +0000)]
*** empty log message ***
Mikael Djurfeldt [Fri, 11 Feb 2000 04:48:07 +0000 (04:48 +0000)]
* format.scm (format): Reintroduce (define format format:format)
so that the binding in the public interface of the module will be OK.
Greg J. Badros [Thu, 10 Feb 2000 19:45:10 +0000 (19:45 +0000)]
* 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.
Gary Houston [Wed, 9 Feb 2000 21:25:34 +0000 (21:25 +0000)]
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.
Gary Houston [Tue, 8 Feb 2000 22:16:15 +0000 (22:16 +0000)]
* __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.
Greg J. Badros [Tue, 8 Feb 2000 22:01:14 +0000 (22:01 +0000)]
*** empty log message ***
Greg J. Badros [Tue, 8 Feb 2000 21:59:19 +0000 (21:59 +0000)]
* ports.c: Doc patches from Richard Kim. Pasted from MIT Scheme.
Thanks Richard!
Greg J. Badros [Mon, 7 Feb 2000 17:09:15 +0000 (17:09 +0000)]
*** empty log message ***
Greg J. Badros [Mon, 7 Feb 2000 17:08:07 +0000 (17:08 +0000)]
* macros.c: Doc patches from Richard Kim. Pasted from scm.texi.
Greg J. Badros [Mon, 7 Feb 2000 04:30:25 +0000 (04:30 +0000)]
*** empty log message ***
Greg J. Badros [Mon, 7 Feb 2000 04:30:17 +0000 (04:30 +0000)]
* pairs.c: Doc patches from Richard Kim. Pasted from MIT Scheme
(which is GNU GPL'd).
Gary Houston [Mon, 31 Jan 2000 18:29:56 +0000 (18:29 +0000)]
* 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.
Marius Vollmer [Sun, 30 Jan 2000 23:17:00 +0000 (23:17 +0000)]
* Makefile.am (version.texi): Override automake's rule for
version.texi so that it gets created even in non-maintainer-mode.
Gary Houston [Sat, 29 Jan 2000 19:50:36 +0000 (19:50 +0000)]
* posix.c (scm_pipe): rewrote the docstring.
(and fixed a bug in the scm_select change)
Gary Houston [Sat, 29 Jan 2000 18:04:38 +0000 (18:04 +0000)]
* 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.
Greg J. Badros [Thu, 27 Jan 2000 18:16:35 +0000 (18:16 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 27 Jan 2000 18:15:56 +0000 (18:15 +0000)]
* vectors.c, symbols.c, strorder.c: Documentation cut and pasted
from Gregg Reynolds. Thanks Gregg!
Greg J. Badros [Thu, 27 Jan 2000 18:03:53 +0000 (18:03 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 27 Jan 2000 18:00:06 +0000 (18:00 +0000)]
* strop.c (scm_i_index): Obfuscated commented-out SCM_DEFINE by
adding "x" prefix to the line so that guile-func-name-check
doesn't complain unnecessarily.
Greg J. Badros [Thu, 27 Jan 2000 01:39:26 +0000 (01:39 +0000)]
*** empty log message ***
Greg J. Badros [Thu, 27 Jan 2000 01:35:16 +0000 (01:35 +0000)]
* throw.c: Factor out an #ifdef/#else/#endif choice more finely
for maintainability.
* strop.c: Documentation added by Gregg A. Reynolds. Pasted in
from qdocs, RnRs.
Greg J. Badros [Wed, 26 Jan 2000 21:11:54 +0000 (21:11 +0000)]
*** empty log message ***
Greg J. Badros [Wed, 26 Jan 2000 18:07:07 +0000 (18:07 +0000)]
* tag.c: Added doc for `tag', but mark as deprecated since Mikael
suggests removing tag.c altogether (and using a new `class-of'
instead).
* strings.c: Added documentation from Gregg A. Reynolds. Edited
a bit by me to use FOO instead of @var{foo} and to have the
summary come before preconditions on input. Also dropped trailing
(rnrs) note.
* gsubr.c: Do not use SCM_DEFINE for `gsubr-apply'. Register the
function with scm_make_subr_opt w/ last arg of 0 so it is not
visible at the Scheme level. Mikael says (on devel-guile) that
this is the right thing because the first arg to the proc is the
guts of a compiled closure and shouldn't be exposed to the Scheme
level.
Greg J. Badros [Wed, 26 Jan 2000 01:26:30 +0000 (01:26 +0000)]
Ignore tmp[123] files
Greg J. Badros [Wed, 26 Jan 2000 01:25:40 +0000 (01:25 +0000)]
*** empty log message ***
Greg J. Badros [Wed, 26 Jan 2000 01:17:16 +0000 (01:17 +0000)]
* sort.c: typo in comment fixed.
* keywords.c: Added documentation.
* guardians.c: Added documentation (could be better).
* gc.c: Added docs for gc-set-debug-check-freelist.
* eq.c: Added docs for eq?, eqv? equal? abridged from R4RS.
* boolean.c: Added docs for `not', `boolean?' (by hand).