1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-19 03:00:25 +02:00
Commit graph

366 commits

Author SHA1 Message Date
Ludovic Courtès
1a1fb64308 Changes from arch/CVS synchronization 2007-09-01 17:11:00 +00:00
Ludovic Courtès
932bd3abce Changes from arch/CVS synchronization 2007-08-08 15:04:30 +00:00
Ludovic Courtès
a944fd0f81 Changes from arch/CVS synchronization 2007-06-13 22:20:39 +00:00
Kevin Ryde
f4fbe4a4f5 (top-repl): Check (defined? 'SIGBUS) before using that
value, there's no such signal on mingw.  Reported by Cesar Strauss.
2007-01-03 21:48:35 +00:00
Kevin Ryde
a59432a2ed (use-srfis, top-repl): Use process-use-modules, to
correctly handle duplicates between the core and other modules, in
particular srfi-17 which should replace `car' etc (but didn't).
2006-12-12 21:41:20 +00:00
Kevin Ryde
5840136768 (top-repl): Remove module-use! of the core `(guile)'
module.  It's already in `(guile-user)' and the module-use! elevates
it making core bindings override those from elsewhere, such as `iota'
under a run of "guile --use-srfi=1".  Reported by Sven Hartrumpf.
2006-12-08 20:24:30 +00:00
Neil Jerram
6610e77737 (environment-module): Change eval-closure-module call
back to procedure-property lookup.  (This completes the reversion
of the change made on 2005-06-10, which was only partially undone
by the change on 2005-08-01.)
2006-11-13 21:54:12 +00:00
Kevin Ryde
1f28c41667 (log, log10, exp, sqrt): Remove, now in libguile/numbers.c. 2006-09-22 23:35:51 +00:00
Kevin Ryde
b0c50494b6 (%record-type-check): New function.
(record-accessor, record-modifier): Use it for a strict type check of
the given record.  Previously an accessor returned #f on a wrong
record type, and modifier silently did nothing.
2006-08-02 00:45:45 +00:00
Kevin Ryde
0e68e92fda 2006-03-04 Ludovic Courtès <ludovic.courtes@laas.fr>
* ice-9/boot-9.scm (make-autoload-interface): Don't call `set-car!' if
	the autoload interface has already been removed from MODULE's uses.
	This bug showed up when using a given module both with `autoload' and
	`use-module'.
2006-03-03 23:30:40 +00:00
Neil Jerram
2328328f85 * boot-9.scm (try-module-autoload): Make sure that module code is
loaded with the default reader (current-reader #f).  Thanks to
Ludovic Courtès for pointing this problem out.
2006-02-04 15:57:16 +00:00
Neil Jerram
56658166b2 * stack-catch.scm (stack-catch): Use catch pre-unwind handler
instead of lazy-catch.

* boot-9.scm (error-catching-loop): Use catch pre-unwind handler
instead of lazy-catch.
2006-02-04 14:36:06 +00:00
Neil Jerram
27d64e2b4a (repl-reader): Use value of current-reader fluid to
do the read, if set.  (Thanks to Ludovic Courtès for the patch.)
2006-01-13 17:36:52 +00:00
Neil Jerram
ec3a8ace63 * api-evaluation.texi (Loading): Document custom reader.
* boot-9.scm (load-module): Support an optional custom reader arg,
implemented by passing on to r4rs's load.

* r4rs.scm (load): Support an optional custom reader arg,
implemented by passing on to primitive-load.

* load.c (the_reader, the_reader_fluid_num): New.
(scm_primitive_load): Support custom reader.
(scm_init_load): Init the_reader and the_reader_fluid_num; export
the_reader as `current-reader'.
2005-12-14 00:21:11 +00:00
Marius Vollmer
08b609aa1f (%cond-expand-features): Add srfi-61. 2005-12-06 21:32:09 +00:00
Marius Vollmer
6169fe26f3 (set-module-eval-closure!): Undone change from 2005-06-10; with the
new weak hashtable semantics, cyclic references are no longer a
problem.
2005-07-31 23:36:50 +00:00
Han-Wen Nienhuys
e4da074025 *** empty log message *** 2005-06-11 01:48:19 +00:00
Marius Vollmer
1b05b32436 (substring-fill!): New, for compatability. 2005-06-05 17:24:52 +00:00
Marius Vollmer
92205699d0 The FSF has a new address. 2005-05-23 19:57:22 +00:00
Kevin Ryde
ab661b7073 (make-list): Moved to C code in list.c 2005-04-23 00:03:33 +00:00
Kevin Ryde
9fe73e7bbc (1+, 1-): Moved to numbers.c. 2005-04-14 00:38:09 +00:00
Rob Browning
344d68d521 (%cond-expand-features): add srfi-55.
(require-extension): add require-extension macro for srfi-55.
2005-02-12 06:12:21 +00:00
Kevin Ryde
c8fc38b13b (while): Remove the unquote from do, it breaks with ice-9
syncase.  Reported by Pach Roman.
2005-01-27 21:20:47 +00:00
Marius Vollmer
2042e178fc * arrays.scm, deprecated.scm (uniform-vector-fill!,
make-uniform-vector, make-uniform-array, list->uniform-vector):
Moved from arrays.scm to deprecated.scm.
* arrays.scm, boot-9.scm (array-dimensions): Moved from arrays.scm
to boo-9.scm.
* Makefile.am (ice9_sources): Removed arrays.scm.
2005-01-10 20:06:03 +00:00
Marius Vollmer
0c5f718b64 (module-make-local-var!): When creating a new variable, initialize it
to the value of any imported variable with the given name.  This
allows code like (define round round) to work as expected.
2004-12-22 14:50:56 +00:00
Kevin Ryde
fdc6aebfaf (string-any, string-every): Use a scheme
wrapper around the C code so for the final call to the predicate
procedure is a tail call, per SRFI-13 spec.
2004-12-14 00:21:25 +00:00
Marius Vollmer
ac5d303b6c * boot-9.scm (app, %app): Renamed former to the latter.
Previously, 'app' was reserved in every module.  Now '%app' is
reserved, which is slightly better.  The real fix is to not use
'local-ref' etc to find modules.  Changed all uses.
* syncase.scm: Changed 'app' to '%app'.
2004-12-01 00:02:24 +00:00
Marius Vollmer
0ec78e1546 Do not add "." to %load-path. 'load' will still be able to load files
in the current directory, but 'use-modules' etc will not.
2004-11-05 14:49:56 +00:00
Marius Vollmer
85acb35ff9 Added srfi-4 to cond-expand features. 2004-10-26 17:05:32 +00:00
Marius Vollmer
92b51af6c1 (symbol->keyword, keyword->symbol): Removed, they are
now implemented in C.
2004-10-04 17:57:39 +00:00
Marius Vollmer
5d8d08494b (handle-system-error): Pass rest argument to
display-backtrace for wrong-type-arg and out-of-range errors so
that the bad value gets highlighted.
2004-09-23 17:56:10 +00:00
Marius Vollmer
bdb112ea6b (expt): Only call integer-expt for an exact integer exponent, not for
an inexact integer one.  Also, let integer-expt handle negative
exponents instead of doing it here.
2004-09-08 14:34:51 +00:00
Marius Vollmer
4a276c08e3 (%cond-expand-features): Addef srfi-13 and srfi-14. 2004-08-24 22:20:47 +00:00
Kevin Ryde
018733ff9e (%cond-expand-features): Add srfi-6 which is in the core. 2004-07-09 23:44:48 +00:00
Dirk Herrmann
3d2ada2fbc * boot-9.scm: Reordered definitions such that macro definitions
preceed their first usage.  Include and define deprecated stuff
	late in the file to have a better change of detecting accidental
	uses of deprecated definitions. Further, unified the layout a
	little and grouped definitions more cleanly into topics.
2004-05-29 08:40:38 +00:00
Dirk Herrmann
9f84d6aac7 * boot-9.scm (resolve-module): Always start searching from the
root module.  This will allow the C equivalent scm_resolve_module
	to work, independent of what the current module is.
2004-05-03 22:42:09 +00:00
Marius Vollmer
fa2803b92b (top-repl): Make the (guile-user) module use the (ice-9 r5rs) module. 2004-02-18 22:29:45 +00:00
Mikael Djurfeldt
711a9fd7ee * unif.c (scm_make_uve): Removed local variable and simplified
code in order to avoid compiler used uninitialized warnings.

* hashtab.c, hashtab.h (scm_hash_map_to_list): Renamed from
scm_hash_map.
(scm_hash_fold): Use scm_call_3 directly in the call to
scm_internal_hash_fold instead of going via fold_proc (which is
now removed).
(scm_hash_for_each): Use a trampoline +
scm_internal_hash_for_each_handle.
(scm_internal_hash_for_each_handle, scm_hash_for_each_handle): New
functions.
2004-02-13 23:15:37 +00:00
Neil Jerram
bb5ad88f27 Back out change to lazy-handler-dispatch lookup. 2004-01-20 22:38:39 +00:00
Kevin Ryde
2de97f05f0 Revert this, it breaks test-suite/tests/r5rs_pitfalls.test where
false-if-exception is used within syntax-rules.  (Suspect syntax-rules
	ought to support this sort of thing, but it doesn't right now.)

	* boot-9.scm (false-if-exception): Unquote catch and lambda, so as not
	to depend on expansion environment.
2004-01-11 00:01:48 +00:00
Marius Vollmer
062fccce79 (with-fluids): Use with-fluid* when only one fluid is being set. 2004-01-07 19:51:07 +00:00
Kevin Ryde
b83fc1070c (false-if-exception): Unquote catch and lambda, so as not
to depend on expansion environment.
2004-01-03 21:10:27 +00:00
Neil Jerram
64758fe259 Defer lookup of lazy-handler-dispatch. 2003-11-19 01:16:16 +00:00
Marius Vollmer
473687d130 (@, @@): New macros. 2003-11-17 00:28:03 +00:00
Dirk Herrmann
37f5dfe533 * boot-9.scm: Started comment about module system workings. 2003-11-16 13:54:26 +00:00
Kevin Ryde
f319727482 Add another comment to:
(file-exists?): Use stat rather than access?, ...
2003-09-15 22:29:32 +00:00
Kevin Ryde
833fc2f186 (file-exists?): Use stat rather than access?, so as to
follow the effective UID/GID not the real ID.  file-exists? is
normally be used as a prelude to opening or some other operation, and
it's the effective ID which will apply there.  Emacs file-exists-p
uses stat, presumably for the the same reason.
2003-09-12 23:35:54 +00:00
Marius Vollmer
eb84efa171 (make-autoload-interface): Use a proper hashtable as
the obarray, not an empty vector.
(make-module): Always construct a hashtable for the obarray, even
for empty ones.
2003-09-12 15:16:42 +00:00
Kevin Ryde
5578a53f9b * boot-9.scm (while): Use a new key dynamically for each loop, so
break and continue associate to their loop even when recursing.
2003-08-17 00:36:04 +00:00
Kevin Ryde
773abfbb81 (while): Rewrite, continue as proper escape, break
without return value, break and continue new for each while form,
don't depend on bindings in expansion environment.
2003-08-12 21:38:21 +00:00