1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00
Commit graph

289 commits

Author SHA1 Message Date
Marius Vollmer
c0c214a5fc (set-module-eval-closure!): Undone change from 2005-06-10. There is
still code relying on the property being there. UN-GC-able modules are
a problem, tho.
2005-07-31 23:50:12 +00:00
Han-Wen Nienhuys
05d44505b8 *** empty log message *** 2005-06-19 13:27:50 +00:00
Marius Vollmer
7d81830dd2 The FSF has a new address. 2005-05-23 20:15:36 +00:00
Kevin Ryde
a3d13e26cd (numerator, denominator): New functions as specified by
R5RS, 7 lines by Aubrey Jaffer.
2005-04-23 00:36:41 +00:00
Marius Vollmer
5a01596b0d (process-define-module): Check for #:use-syntax keyword, not the
symbol.  Changed references to 'spec' variable to 'interface-args'.
There is no 'spec'.
2005-01-10 20:28:34 +00:00
Kevin Ryde
30c9c68e9b (%cond-expand-features): Add srfi-6 which is in the core. 2004-07-09 23:48:17 +00:00
Kevin Ryde
e4e92cf0af (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:49:08 +00:00
Marius Vollmer
b183676373 (display-usage-report): Use keyword->symbol instead of keyword-symbol,
which doesn't exist.  Thanks to Kevin Ryde.
2003-05-03 20:54:13 +00:00
Mikael Djurfeldt
98250e31ff * upstream/Makefile.am (ltdl.h.diff, ltdl.c.diff): Look for ltdl.h
and ltdl.c in "$(srcdir)".

* evalext.c, evalext.h (s_scm_self_evaluating_p): Needed by
syntax-case macro fix.

* Makefile.am (c-tokenize.c): Look for it in $(srcdir).

* syncase.scm, psyntax.ss, psyntax.pp: Imported fixes from trunk.

* boot-9.scm (use-syntax): Return *unspecified*.
2003-01-27 11:03:20 +00:00
Rob Browning
cf2c8da9ac 2002-10-20 Mikael Djurfeldt <mdj@linnaeus>
* boot-9.scm (top-repl): Look for use-emacs-interface in
guile-user-module (should it be there?) instead of
the-root-module.
2002-10-26 06:16:34 +00:00
Marius Vollmer
2658ff802c (feature?): Added deprecation message and enclosed in
'begin-deprecated'.
2002-09-15 21:34:09 +00:00
Marius Vollmer
67005048a4 (feature?): Added deprecation message. 2002-09-15 20:51:09 +00:00
Marius Vollmer
cc5eb6357e (file-set-position): Make third argument optional,
for SCM compatibility.
(file-position): simplify definition.
2002-06-02 00:24:46 +00:00
Rob Browning
0dc170977a * boot-9.scm (expt): switch if sense and use negative? rather than
>= 0.
2002-05-16 16:48:32 +00:00
Thien-Thi Nguyen
889eb35806 Comment grammar fixes; nfc. 2002-02-26 11:00:10 +00:00
Marius Vollmer
8146695c2d Added comments to functions that are used by "modules.c". 2001-11-23 21:55:03 +00:00
Mikael Djurfeldt
8fbad2cd60 * boot-9.scm (process-define-module): New options: :export-syntax,
:re-export-syntax
2001-10-17 11:59:34 +00:00
Mikael Djurfeldt
4f39d095cb * boot-9.scm (process-define-module): Added :re-export. 2001-09-24 11:13:43 +00:00
Thien-Thi Nguyen
80f3ba2b9f (process-use-modules): Fix typo. 2001-09-19 12:58:34 +00:00
Thien-Thi Nguyen
f9da74b0f6 (resolve-interface): When returning a custom
interface, also consult source module's entire binding set,
not just its exported bindings, before throwing error.
2001-08-30 23:30:12 +00:00
Marius Vollmer
05616098de (resolve-interface): Get variables from the public interface of a
module instead of from the module itselfs.
2001-08-25 16:10:33 +00:00
Marius Vollmer
f72d1379f7 (compile-interface-spec): Bug fix: the keyword argument is "renamer"
not "rename".
2001-07-12 23:30:46 +00:00
Rob Browning
8672e3cfc1 * boot-9.scm: Fixed the sense of the error message when read-eval?
is #f.  Thanks to Matthias for catching this.
2001-07-09 14:25:42 +00:00
Rob Browning
600c958485 * boot-9.scm: added fix suggested by Matthias for #. read
extension -- now only works if read-eval? is not #f.
2001-07-06 17:38:40 +00:00
Neil Jerram
d95c0b76d6 * Handle evaluator traps by calling trap handlers directly rather than
by scm_ithrow and a lazy catch handler.
2001-06-26 21:55:45 +00:00
Marius Vollmer
e6b748a832 (re-export-syntax): New. 2001-06-25 01:06:33 +00:00
Marius Vollmer
019ac1c987 (system-error-errno): New. 2001-06-16 20:14:24 +00:00
Marius Vollmer
de698bfa26 Use `begin-deprecated' instead of testing
`include-deprecated-features' when conditionally using the (ice-9
rdelim) module.  See below.
2001-06-11 17:23:42 +00:00
Gary Houston
6eb396fe09 * boot-9.scm: use the (ice-9 rdelim) module if
include-deprecated-features is true.
2001-06-10 20:44:45 +00:00
Marius Vollmer
89d06712d9 (module-ensure-local-variable!): Renamed from
`module-ensure-variable!'.  Make sure that there really is a local
variable, not just a visible one.
(module-ensure-variable!): See above.
(module-export!): Behave like always when deprecated features are
enabled, but issue a warning when re-exporting a variable.  When
deprecated features are disabled, only export local variables,
creating them uninitialized when they don't yet exist.
(module-re-export!): New.  Use this for re-exporting imported
variables.
(re-export): New, to go with `module-re-export!'.

(named-module-use!, top-repl): Use resolve-interface
instead of resolve-module to get at the used module.
2001-06-04 22:14:16 +00:00
Marius Vollmer
a482f2cc7b Added exception notice to all files.
(module-export!): Revert 2001-06-02 change.  It
caused more problems than it solved by accidentally re-exporting
importing bindings once in a while.
2001-06-03 23:29:45 +00:00
Marius Vollmer
99a34d6e6a (try-load-module): Bracket calls to try-module-linked
and try-module-dynamic-link with `begin-deprecated'.
(split-c-module-name, convert-c-registered-modules,
registered-modules, register-modules, warn-autoload-deprecation,
init-dynamic-module, dynamic-maybe-call, dynamic-maybe-link,
find-and-link-dynamic-module, try-using-libtool-name,
try-using-sharlib-name, link-dynamic-module, try-module-linked,
try-module-dynamic-link): Deprecated.  Activate deprecation
message.
2001-06-03 01:02:53 +00:00
Marius Vollmer
9540368e79 (module-ensure-variable!): New.
(module-export!): Use it to ensure that there is a variable to
export.  Previously, we would always create a new variable, copy
the value over, and export the new variable.  This confused
syncase since it keys important properties on variables.
2001-06-02 18:33:25 +00:00
Marius Vollmer
532cf805db (resolve-interface): Expect keyword arguments instead of a `spec'.
(compile-interface-spec, compile-define-module-args): New.
(define-module): Use compile-define-module-args to construct
argument for process-define-module.
(use-modules, use-syntax): Use compile-interface-spec to construct
arguments for process-use-modules.
(process-define-module): Expect keywords in argument list.
2001-06-01 20:15:10 +00:00
Marius Vollmer
615bfe7277 (top-repl): Revert part of the 2001-05-19 change.
When defining the guile-user module, do not use any modules.  Add
them to guile-user when `top-repl' is called.
2001-06-01 14:01:27 +00:00
Marius Vollmer
9f79272ab3 (cond-expand): Define using
`procedure->memoizing-macro' to get at the lexical environment.
Use `env-module' instead of `current-module' to get the right
module.
2001-05-25 13:18:52 +00:00
Martin Grabmüller
b9b8f9da60 * boot-9.scm (%cond-expand-table): New hash table mapping modules
to feature lists.
	(cond-expand): Use feature information associated with modules.

	* boot-9.scm (use-srfis): Do not extend the srfi-0 feature list.
	(cond-expand-provide): New procedure.
2001-05-23 05:08:17 +00:00
Marius Vollmer
25afac9812 (define-module): Return the new module. (process-define-module): Use
`spec' instead of `module-name' when getting the syntax transformer.
2001-05-22 22:45:13 +00:00
Marius Vollmer
eee58958bb (use-syntax): Do not set scm:eval-transformer when
deprecated features have been removed.  Thanks to Dale P. Smith!
2001-05-21 13:19:40 +00:00
Marius Vollmer
d866f4455b (process-define-module): Do not call
set-current-module.
(define-module): Do it here, in the expansion.
(top-repl): Do not define '(guile-user)' module and conditionally
load `(ice-9 threads)' and/or `(ice-9 regex)' here.  Do it on
top-level as the last thing in boot-9.scm instead.
(%load-path): Use `list' instead of `cons' to create a single
element list when adding "." to it.
(process-define-module, process-use-modules, module-export!): Add
dummy definitions prior to booting the mdule system.
2001-05-19 01:30:02 +00:00
Thien-Thi Nguyen
f8a502cb72 (resolve-interface, use-srfis): Small cleanup; nfc.
(process-define-module): Internal proc `unrecognized'
now accepts arg; update callers.
Reverse order of interfaces added to module to be
consistent with that specified in `define-module' form.
2001-05-18 17:28:03 +00:00
Martin Grabmüller
f41be016f6 * boot-9.scm (cond-expand-features): Made the feature list public,
so it can be manipulated by `use-srfis'.
	(use-srfis): New procedure.
2001-05-15 20:20:51 +00:00
Thien-Thi Nguyen
b622dec753 (resolve-interface): Signal error now also if used module's
public interface is not available.
No longer call `beautify-user-module!'.
Signal error now also if selected binding not found.
2001-05-15 19:33:43 +00:00
Marius Vollmer
296ff5e78b Merged from mvo-vcell-cleanup-1-branch. 2001-05-15 14:59:42 +00:00
Marius Vollmer
5f89fb1313 (error-catching-repl): Call the E
("eval'er") procedure via call-with-values and call the P
("printer") for each produced value.  Thanks to Matthias Köppe!
2001-05-15 00:51:06 +00:00
Martin Grabmüller
1d00af09c7 * boot-9.scm (cond-expand): Reduce feature list to built-in
features.
2001-05-14 19:09:50 +00:00
Dirk Herrmann
5cd06d5eaa * Deprecated some definitions.
* Minor fixes.
2001-05-14 16:38:08 +00:00
Martin Grabmüller
7f24bc58dc * boot-9.scm: Added `cond-expand' (SRFI-0) for portable feature
checking.
2001-05-11 05:41:03 +00:00
Thien-Thi Nguyen
fb1b76f432 (resolve-module): Abstraction maintenance: Use
`module-public-interface'.
(resolve-module): Extend to handle selection and renaming in spec.
Arg is now `spec' which can be a simple module name (list of symbols)
or a interface spec.
(symbol-prefix-proc): New proc.
(process-define-module): Use "define-module" in error messages
instead of "defmodule".  Factor error into internal proc.
Rewrite `use-module' and `use-syntax' handlers.
Replace some single-arm `if-not' constructs w/ `or'.
(process-use-modules): Arg is now `module-interface-specs',
which is passed through to `resolve-interface' as before; nfc.
(named-module-use!, top-repl): Abstraction maintenance: Use `provided?'.
2001-05-10 22:00:22 +00:00
Neil Jerram
4879243cdc * Correct error message in `use-syntax'. 2001-05-05 13:41:59 +00:00