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

5705 commits

Author SHA1 Message Date
Mikael Djurfeldt
b8446ce883 * unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays. 2001-01-31 15:18:47 +00:00
Mikael Djurfeldt
c2886a5ae1 Added #include "libguile/rdelim.h". 2001-01-31 15:14:53 +00:00
Dirk Herrmann
e32398681a * Added docstrings by Martin Grabmueller. 2001-01-30 14:53:20 +00:00
Mikael Djurfeldt
41ee56dde3 * eval.c (SCM_APPLY): Check that primitives which take 1 arg
really get that arg.
2001-01-29 18:23:34 +00:00
Marius Vollmer
d42b03fd66 *** empty log message *** 2001-01-28 17:56:46 +00:00
Marius Vollmer
539fdb77e0 * readline.scm (make-readline-port): PROMPT becomes PROMPT2 as
soon as GET-CHARACTER returns any character at all that was
previously read.  This makes the continuation prompt appear
properly for partial expressions.  Thanks to Neil Jerram!
2001-01-28 17:56:34 +00:00
Keisuke Nishida
b6311c0832 goops.c (s_scm_get_keyword): Bug fix. 2001-01-27 00:13:55 +00:00
Dirk Herrmann
a49af0c0f7 * Fix parameter error reporting and avoid redundant parameter checks. 2001-01-26 18:04:32 +00:00
Dirk Herrmann
13070bd3b0 * Added missing includes of string.h. 2001-01-26 17:30:54 +00:00
Dirk Herrmann
e9bab9df3d * Make readline run-time options accessible. 2001-01-26 16:58:48 +00:00
Dirk Herrmann
efb07c899c * Fixed things that I had broken with the last patch :-( 2001-01-26 16:49:28 +00:00
Dirk Herrmann
8992c8a2ef * Forgot to add the file check-guile.in with the latest commit. 2001-01-26 13:47:53 +00:00
Dirk Herrmann
1ff7abbe3f * Added Thien-Thi Nguyen's patch to support "make check". 2001-01-26 13:44:57 +00:00
Dirk Herrmann
2f2b390c83 * On errors, show line and column information even for unnamed ports. 2001-01-25 23:34:31 +00:00
Dirk Herrmann
c4a9b7bbd1 * Make sure that only open file ports are used as readline ports. 2001-01-25 17:57:29 +00:00
Dirk Herrmann
efa40607b1 * Added a file-port? primitive. 2001-01-25 17:40:50 +00:00
Dirk Herrmann
a98bddfd12 * Made the port implementations less tightly coupled within guile. 2001-01-25 17:18:41 +00:00
Dirk Herrmann
0419a52877 * Fix handling of (set-source-property! <obj> 'copy <datum>). 2001-01-25 11:09:21 +00:00
Gary Houston
fd937ecb02 *** empty log message *** 2001-01-24 21:47:23 +00:00
Gary Houston
22d356150d * tests/ports.test: include (ice-9 rdelim) module. 2001-01-24 21:46:04 +00:00
Gary Houston
6d36532c1c * boot-9.scm: don't import (ice-9 rdelim) here. it's done
in C for now.
	* rdelim.scm: export the C primitives too.
	* documentation.scm: use (ice-9 rdelim).

	* filesys.c (scm_link): docstring fix.
	* fports.h (scm_setfileno): obsolete declaration removed.
	* posix.c: bogus popen declaration removed.

	* rdelim.c: new file, split from ioext.c with new proc
	scm_init_rdelim.
	* rdelim.h: new file.
	* Makefile.am: add rdelim.c and related files.
	* init.c: call scm_init_rdelim.  include rdelim.h.
2001-01-24 21:45:09 +00:00
Gary Houston
1c8cbd62c5 *** empty log message *** 2001-01-24 21:31:39 +00:00
Dirk Herrmann
3ba5a6c2f2 * Make sure that parameter errors are reported correctly.
Thanks to Martin Grabmueller for sending this patch.
2001-01-24 18:07:29 +00:00
Dirk Herrmann
ed6a2db9d7 * Ooops: Forgot to credit Neil for the bug report. 2001-01-24 16:06:20 +00:00
Dirk Herrmann
e40a4095d6 * Make sure that scm_display_error validates its port argument. 2001-01-24 15:58:46 +00:00
Mikael Djurfeldt
f1e06a96a2 * eval.c (SCM_APPLY): Added # args check for application of
procedures with arity 3.  (Thanks to Anders Holst.)
2001-01-24 01:26:44 +00:00
Dirk Herrmann
30ea841d0c * Separate the handling of OPEN flags between ports and directories. 2001-01-24 00:02:43 +00:00
Dirk Herrmann
312ae976ad * Move all real functionality from scm_eval into inner_eval.
* Avoid to copy the evaluated expression twice.
2001-01-22 13:32:08 +00:00
Gary Houston
9d7748147e * rdelim.scm: new file implementing module (ice-9 rdelim).
* ice-9.scm (scm-line-incrementors read-line! read-delimited!
	read-delimited read-line): moved to rdelim.scm.
	scm-line-incrementors is not exported.
	* boot-9.scm: import (ice-9 rdelim) for backwards compatibility,
	for now.
	* lineio.scm: use module (ice-9 rdelim).
	* Makefile.am (ice9_sources): add rdelim.scm.
2001-01-21 22:11:29 +00:00
Dirk Herrmann
4567ed787c * Applied Martin Grabmueller's fix of case's handling of 'else. 2001-01-19 17:16:52 +00:00
Neil Jerram
6c29a390fa * Make the readline port input-only. 2001-01-19 09:00:05 +00:00
Gary Houston
10288a0948 * ioext.c: further simplify scm_read_string_x_partial by defining
a macro	SCM_EBLOCK.
2001-01-18 22:54:54 +00:00
Dirk Herrmann
21e39e8fe6 * Converted to real boundary testing. 2001-01-18 17:24:10 +00:00
Dirk Herrmann
8f379a8f61 * Simplified gh_ints2scm by using SCM_FIXABLE. 2001-01-18 15:12:51 +00:00
Dirk Herrmann
5c75b29f1d * Cleaned up some limits-definitions. 2001-01-18 13:35:45 +00:00
Dirk Herrmann
339bfe47a1 * Added tests for bit-operations. 2001-01-17 18:22:26 +00:00
Dirk Herrmann
ac0c002c62 * Fixed a couple of bugs with quotient, remainder, bit-extract and logand. 2001-01-17 18:15:30 +00:00
Dirk Herrmann
debe0dc24f * Comment fixed. 2001-01-16 11:19:36 +00:00
Dirk Herrmann
8a39e3fc79 * Return type of scm_make_smob_type is scm_bits_t now. 2001-01-15 17:15:13 +00:00
Michael Livshin
322ec19d3c * objects.h (SCM_SET_ENTITY_SETTER): new macro. SCM_ENTITY_SETTER
casts its result, so doesn't yield an lvalue per ANSI C.

* goops.c (s_scm_sys_set_object_setter_x): use
SCM_SET_ENTITY_SETTER.
(clear_method_cache): use SCM_SET_ENTITY_PROCEDURE.

* gc.h (SCM_GC_SET_CARD_BVEC): new macro.  SCM_GC_CARD_BVEC casts
its result, so doesn't yield an lvalue per ANSI C.
(SCM_GC_SET_CARD_FLAGS): ditto for SCM_GC_GET_CARD_FLAGS.
(SCM_GC_CLR_CARD_FLAGS): redefined in terms of
SCM_GC_SET_CARD_FLAGS.
(SCM_GC_SET_CARD_FLAG, SCM_GC_CLR_CARD_FLAGS): ditto.

* gc.c (INIT_CARD): use the explicit setter macro to set the bvec.
2001-01-11 21:03:18 +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
Gary Houston
264e9cbc93 *** empty log message *** 2001-01-06 22:04:04 +00:00
Gary Houston
c2da26487a * ioext.c (scm_read_string_x_partial): new procedure, implements
read-string!/partial.
	* ports.c (scm_take_from_input_buffers): new procedure used by
	scm_read_string_x_partial.
	(scm_drain_input): use scm_take_from_input_buffers.
2001-01-06 22:03:07 +00:00
Marius Vollmer
4651d663fa *** empty log message *** 2001-01-06 18:47:12 +00:00
Marius Vollmer
e8a46ba8c3 * validate.h (SCM_VALIDATE_NUMBER): New. 2001-01-06 18:46:48 +00:00
Neil Jerram
b7d69200c0 * Fix typos in entry about guardian semantic changes. 2001-01-05 09:29:12 +00:00
Michael Livshin
c0a5d88835 * guardians.c (F_GREEDY, F_LISTED, F_DESTROYED, GREEDY_P,
SET_GREEDY, LISTED_P, SET_LISTED, CLR_LISTED, DESTROYED_P,
 	SET_DESTROYED): new defines/macros.
	(GUARDIAN_LIVE, GUARDIAN_ZOMBIES, GUARDIAN_NEXT): deleted.
	(add_to_live_list): takes a `guardian_t *' now, not SCM.
	(guardian_print): print more info.
	(guardian_apply): check if the guardian is destroyed, and throw an
 	error if so.  take one more optional argument `throw_p'.
	(scm_guard): depending on the value of `throw_p', return a boolean
 	result.
	(scm_get_one_zombie): remove redundant property test.
	(guardian_t): represent the various (currently 3, I hope nothing
 	more gets added) boolean fields as bit flags.
	(scm_guardian_destroyed_p, scm_guardian_greedy_p): new predicates.
	(scm_destroy_guardian_x): new procedure.

	* guardians.h: added prototypes for `scm_guardian_greedy_p' and
	`scm_guardian_destroyed_p'.  changed prototype for `scm_guard'.
2001-01-04 13:00:31 +00:00
Gary Houston
0c6d2191ef * fports.c (fport_write): bugfix: handle short writes for
unbuffered ports too.  optimize the buffered case by minimizing
	the number of write/flush calls.
	(write_all): new helper procedure.
2001-01-02 00:38:41 +00:00
Michael Livshin
75bc0690c8 * guardians.c (guardian_print): for sharing guardians, print that
they are sharing.
(scm_guard, scm_get_one_zombie): place the critical section
barriers more correctly.
2000-12-30 19:26:37 +00:00
Michael Livshin
d9dcd93362 * weaks.c (scm_scan_weak_vectors): move the calculation of the
`weak_keys' and `weak_values' flags out of the inner loop.

	* guardians.c: (greedily_guarded_prop): deleted.
	(greedily_guarded_whash): new variable.  a doubly-weak hash table
	used to keep the "greedily hashed" object property.  the previous
	implementation (via primitive object properties) was incorrect due
	to its only-the-key-is-weak semantics.
	(scm_guard, get_one_zombie, scm_init_guardians): use/init
	`greedily_guarded_whash'.
2000-12-29 22:18:06 +00:00