1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-06 15:40:29 +02:00
Commit graph

8712 commits

Author SHA1 Message Date
Marius Vollmer
a44738d339 (directory-files): Close dir-stream when done. Thanks to Paul Jarc! 2003-10-12 16:55:17 +00:00
Rob Browning
e9af43516a *** empty log message *** 2003-10-11 21:39:16 +00:00
Rob Browning
b2e64b4cdd (s_scm_append): add patch from Kevin Ryde to track argnum
in error messages.
2003-10-11 21:37:03 +00:00
Kevin Ryde
33b482982a *** empty log message *** 2003-10-02 00:26:12 +00:00
Kevin Ryde
a1e7d87423 (String Ports): In call-with-output-string, note proc
should not close the port.  In get-output-string, note string must be
gotten before closing the port.
2003-10-02 00:25:05 +00:00
Kevin Ryde
d5c4160240 Almost forgot entry for new tests/popen.test. 2003-10-02 00:02:58 +00:00
Kevin Ryde
36be36509d Fix a couple of typos in:
New file.
2003-10-02 00:02:08 +00:00
Kevin Ryde
85ec8d4df7 Add call-with-output-string no segv on closed port. 2003-10-01 23:45:54 +00:00
Kevin Ryde
a629681215 *** empty log message *** 2003-10-01 23:43:10 +00:00
Kevin Ryde
aa7242492a (call-with-output-string): Test proc closing port. 2003-10-01 23:38:56 +00:00
Kevin Ryde
029328497d *** empty log message *** 2003-10-01 23:32:45 +00:00
Kevin Ryde
5486021ac3 (scm_call_with_output_string): scm_get_output_string
rather than scm_strport_to_string, so as to guard against the port
having been closed by the called procedure.
2003-10-01 23:32:09 +00:00
Rob Browning
c91207a1b2 *** empty log message *** 2003-10-01 19:52:06 +00:00
Rob Browning
0d153cd460 (scm_done_malloc): fix sign error in scm_malloc_done, was
comparing (scm_mallocated < size) when scm_mallocated is unsigned
and size is signed, and size is known to be negative.
2003-10-01 19:51:43 +00:00
Neil Jerram
260cff4195 Two fixes to Guile tutorial. 2003-09-27 10:10:24 +00:00
Rob Browning
9d58732f52 *** empty log message *** 2003-09-27 04:22:09 +00:00
Rob Browning
b2981fd6fd remove vestigal (pre-compile-psyntax.scm) load of
psyntax.ss (used to be needed during syntax-case development, but
now only caused problems with the top-of-the-file eval export.
Enabling the code as the comments instructed caused the other
error when trying to recompile psyntax.pp.
2003-09-27 04:21:59 +00:00
Rob Browning
172d1d9cba * compile-psyntax.scm: migrate missing with-fluids wrapper from
HEAD -- may have been overlooked during the 2003-01-27 merge.
Fixes one of two errors when trying to recompile psyntax.pp.
2003-09-27 04:21:25 +00:00
Rob Browning
4be93bf7d6 (EXTRA_DIST): add compile-psyntax.scm. 2003-09-27 04:20:59 +00:00
Kevin Ryde
7c45fc4df5 Add ice-9 popen duplicate pipe fd fix. 2003-09-19 01:18:20 +00:00
Kevin Ryde
3a4f981f2b *** empty log message *** 2003-09-19 01:12:08 +00:00
Kevin Ryde
557b225f49 (open-process): Close input-fdes, output-fdes and
error-fdes after duping them to 0, 1 and 2.
2003-09-19 01:11:34 +00:00
Kevin Ryde
0ed417f42b New file. 2003-09-19 01:07:57 +00:00
Kevin Ryde
89eff59fd0 * tests/popen.test: New file.
* Makefile.am (SCM_TESTS): Add it.
2003-09-19 01:07:16 +00:00
cvs2svn
0ad5796162 This commit was manufactured by cvs2svn to create branch
'branch_release-1-6'.
2003-09-19 01:05:14 +00:00
Kevin Ryde
3e690887f5 New file. 2003-09-19 01:05:13 +00:00
Kevin Ryde
a118e0eb5a (open-process): Correction to previous fdes closing
change, need to watch out for stdin==stderr or stdout==stderr.
2003-09-19 01:01:10 +00:00
Dirk Herrmann
534c55a97d This set of patches introduces a new tc7 code scm_tc7_number for
numbers.  Bignums, reals and complex numbers are turned from smobs
	into subtypes of scm_tc7_number.

	* tags.h (scm_tc7_number): New.

	* eq.c (scm_equal_p), eval.c (SCM_CEVAL), evalext.c
	(scm_self_evaluating_p), gc-card.c (scm_i_sweep_card), gc-mark.c
	(scm_gc_mark_dependencies), goops.c (create_smob_classes), hash.c
	(scm_hasher), numbers.c, numbers.h (SCM_NUMP), objects.c
	(scm_class_of), print.c (scm_iprin1), smob.c
	(scm_smob_prehistory): Don't handle bignums, reals and complex
	numbers as subtypes of scm_tc7_smob any more.

	* numbers.h, tags.h (scm_tc16_big, scm_tc16_real,
	scm_tc16_complex): Moved definitions from tags.h to numbers.h.
2003-09-18 20:55:40 +00:00
Dirk Herrmann
29c4382afd * numbers.c (scm_make_complex), gc-card.c (scm_i_sweep_card): Use
sizeof (scm_t_complex) to determine the memory size of the
	malloc'd area for complex numbers.
2003-09-18 20:18:17 +00:00
Dirk Herrmann
47ae1f0eca * libguile/numbers.c (scm_bigequal): Fixed.
* test-suite/tests/numbers.test (equal?): Added tests.

	* test-suite/tests/numbers.test (=): Fixed and added some bignum
        related tests.
2003-09-17 21:03:26 +00:00
Marius Vollmer
859b6b2fff *** empty log message *** 2003-09-16 21:21:28 +00:00
Marius Vollmer
2d99b584ac (scm_current_time): 'time' does not set errno so don't use
SCM_SYSERROR for reporting errors.
2003-09-16 21:18:26 +00:00
Dirk Herrmann
e17d318faa This set of patches eliminates the dependency between the
implementation of evaluator specific memoization codes and special
	constants like #f, '() etc. ('flags'), which are not evaluator
	specific.  The goal is to remove definitions of evaluator
	memoization codes completely from the public interface.  This will
	make it possible to experiment more freely with optimizations of
	guile's internal representation of memoized code.

	* objects.c (scm_class_of): Eliminate dependency on SCM_ISYMNUM.

	* print.c (iflagnames): New array, holding the printed names of
	guile's special constants ('flags').

	(scm_isymnames): Now holds only the printed names of the
	memoization codes.

	(scm_iprin1): Separate the handling of memoization codes and
	guile's special constants.

	* tags.h (scm_tc9_flag, SCM_ITAG9, SCM_MAKE_ITAG9, SCM_ITAG9_DATA,
	SCM_IFLAGNUM): new

	(scm_tc8_char, scm_tc8_iloc, SCM_BOOL_F, SCM_BOOL_T,
	SCM_UNDEFINED, SCM_EOF_VAL, SCM_EOL, SCM_UNSPECIFIED, SCM_UNBOUND,
	SCM_ELISP_NIL, SCM_IM_DISPATCH, SCM_IM_SLOT_REF,
	SCM_IM_SLOT_SET_X, SCM_IM_DELAY, SCM_IM_FUTURE,
	SCM_IM_CALL_WITH_VALUES, SCM_IM_NIL_COND, SCM_IM_BIND): Changed
	values.

	(SCM_IFLAGP): SCM_IFLAGP now only tests for flags.

	(SCM_IFLAGP, SCM_MAKIFLAG, SCM_IFLAGNUM): Generalized to use the
	tc9 macros and scm_tc9_flag.
2003-09-16 17:37:56 +00:00
Kevin Ryde
cd56b18192 Fix a grammatical typo in my last entry. 2003-09-15 22:47:27 +00:00
Kevin Ryde
f319727482 Add another comment to:
(file-exists?): Use stat rather than access?, ...
2003-09-15 22:29:32 +00:00
Marius Vollmer
5dc1ba739f *** empty log message *** 2003-09-15 13:38:07 +00:00
Marius Vollmer
093d2ca9af (format): Rewritten as a big letrec to make it reentrant. No mutex is
necessary.  Thanks to Clinton Ebadi!
2003-09-15 13:37:50 +00:00
Marius Vollmer
eecac80630 *** empty log message *** 2003-09-15 12:37:16 +00:00
Marius Vollmer
2eb78d0670 (scm_setgroups): Check that the gid list is not too long. Thanks to
Paul Jarc!
2003-09-15 12:36:57 +00:00
Dirk Herrmann
22f2cf2d9a * tags.h: Reduced the number of short instructions from 14 to 13.
The typecode of the former 14th short instruction is now used to
	represent long instructions.  Changed some comments to reflect
	this fact.

	(SCM_MAKISYM): ISYMs get a new tc7 code, namely the one that was
	previously used by SCM_IM_DEFINE.

	(SCM_IM_DEFINE): Turned into a long instruction.

	* eval.c (unmemocopy, SCM_CEVAL): Treat SCM_IM_DEFINE as a long
	instruction.

	* eval.c (SCM_CEVAL): Since characters and iflags have now a tc7
	code that is separate from all instructions, one level of dispatch
	for long instructions can be eliminated.

	* print.c (scm_isymnames): Removed some commented code.
2003-09-14 08:07:10 +00:00
Kevin Ryde
89990cc656 *** empty log message *** 2003-09-13 00:39:44 +00:00
Kevin Ryde
85600a0f78 (SRFI-19): Rewrite, adding descriptions of all
functions, and a bit of an introduction.
2003-09-13 00:39:16 +00:00
Kevin Ryde
9f5e5b5601 *** empty log message *** 2003-09-13 00:18:46 +00:00
Kevin Ryde
c537e01bce (Append/Reverse): Merge reverse and reverse!,
describe newtail parameter for reverse!, remove confusing caveat about
head becoming tail for reverse!.
2003-09-13 00:12:08 +00:00
Kevin Ryde
eee36f2105 (Reading): Add scm_c_read.
(Writing): Add scm_c_write.
2003-09-13 00:09:14 +00:00
Kevin Ryde
57066448c2 (SRFI-1 Constructors): Add list-copy. 2003-09-13 00:01:48 +00:00
Kevin Ryde
957f9f622d (Network Address Conversion): Under IPv4, describe
numeric representation in Guile, add INADDR_LOOPBACK and
INADDR_BROADCAST, add commented-out INADDR_NONE.
2003-09-12 23:59:30 +00:00
Kevin Ryde
5c3917e7f5 (File System): In stat:dev and stat:mode, clarify that both are numbers. 2003-09-12 23:57:03 +00:00
Kevin Ryde
eaa032c389 (Reading): In port-column, port-line,
set-port-column! and set-port-line!, port parameter must be given,
there's no default to current input.
2003-09-12 23:55:03 +00:00
Kevin Ryde
f45fd5e126 *** empty log message *** 2003-09-12 23:50:23 +00:00