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

354 commits

Author SHA1 Message Date
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
Dirk Herrmann
42ad901d04 * benchmark-suite/lib.scm: Fix some typos in the documentation.
* doc/ref/scheme-compound.texi: Clarified that vectors need to
       be quoted.

       * doc/tutorial/guile-tut.texi: Fix example, where a vector
       constant is used without quoting.

       * ice-9/boot-9.scm (make-autoload-interface): Added missing
       quote around vector constant.

       * test-suite/tests/elisp.test: Added missing quote around vector
       constants.
2003-05-27 18:33:19 +00:00
Marius Vollmer
297775ce69 (display-usage-report): Use keyword->symbol instead of keyword-symbol,
which doesn't exist.  Thanks to Kevon Ryde.
2003-05-03 20:52:31 +00:00
Marius Vollmer
73be1d9e8e Changed license terms to the plain LGPL thru-out. 2003-04-05 19:15:35 +00:00
Marius Vollmer
48fdec2178 Load "ice-9/deprecated.scm" when appropriate.
(try-load-module): Also try the old deprecated method, maybe.
2003-03-26 17:59:22 +00:00
Marius Vollmer
e8ed460ec7 (call/cc): Added. 2003-03-22 00:34:34 +00:00
Mikael Djurfeldt
65bed4aa84 * boot-9.scm (duplicate-handlers): Make sure the merge-generics
and merge-accessors handlers are available also before (oop goops)
has been loaded.  This is so that people can put them as default
handlers without worrying about availability.
2003-03-12 19:27:15 +00:00
Mikael Djurfeldt
6496a6638b * boot-9.scm (default-duplicate-binding-handler): Set default to
'(replace warn last)
2003-03-12 17:16:36 +00:00
Mikael Djurfeldt
fe6ee0528b * boot-9.scm (ipow-by-squaring): Removed.
(default-duplicate-binding-handler): Set default to
'(replace warn last)
2003-03-12 16:52:07 +00:00
Mikael Djurfeldt
0c160c7339 Adjusted warning message 2003-03-12 14:40:19 +00:00
Mikael Djurfeldt
8d8dac1f2f * boot-9.scm (module-duplicates-info, set-module-duplicates-info!): Removed.
(module-duplicates-handlers, module-duplicates-interface): New.
(module-type): Added duplicates-handlers and duplicates-interface.
2003-03-12 14:30:03 +00:00
Mikael Djurfeldt
d57da08b6d * srfi-13.scm: Mark replacements.
* srfi-17.scm: Mark replacements.

* boot-9.scm (module-make-local-var!): Use module-add!.
(module-primitive-add!): New function.
(resolve-interface): Use
(call-with-deferred-observers, module-call-observers): New
functions.
(module-defer-observers, module-defer-observers-mute,
module-defer-observers-table): New variables.
(process-define-module, process-use-modules, export, re-export):
Use call-with-deferred-observers.

* syncase.scm (eval): Mark as replacement.

* boot-9.scm (defmacro-public): Use export-syntax instead of export.
2003-03-12 14:11:42 +00:00
Mikael Djurfeldt
70a459e3f8 * slib.scm (*features*): Set the core variable instead of defining
a local version.
(provide, provided?): Mark as replacements.

* boot-9.scm (beautify-user-module!): Don't install the duplicates
handler here.
(default-duplicate-binding-handler): Renamed from
default-module-duplicates-handler; Removed converter.
(process-duplicates): Lookup default duplicates handler dynamically.
(default-duplicate-binding-procedures): New parameter.
2003-03-12 10:03:25 +00:00