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

2151 commits

Author SHA1 Message Date
Mikael Djurfeldt
bc9a91373f *** empty log message *** 1998-12-07 02:56:00 +00:00
Mikael Djurfeldt
0ec99547cd * setf.scm: New file. Adds the new forms setf!' and setter'
which implements generalized references a la Common LISP.
1998-12-07 02:53:33 +00:00
Mikael Djurfeldt
e8c709c475 Updated 1998-12-07 02:52:28 +00:00
Mikael Djurfeldt
93f543c9ec * Makefile.am: Added setf.scm. 1998-12-07 02:52:07 +00:00
Jim Blandy
f233316662 * pairs.h (SCM_NEWCELL): When DEBUG_FREELIST is defined, don't
take the address of _into; it might be a register.  Just have
scm_debug_newcell return the new cell.
* gc.c (scm_debug_newcell): Just return the new cell, instead of
taking the address of a place to store it as an argument.
* gc.h (scm_debug_newcell): Change declaration.
(Thanks to Greg Harvey.)
1998-12-05 18:52:15 +00:00
Jim Blandy
105ac23a5b Remove list of things to do for 1.3 release. 1998-12-05 18:07:41 +00:00
Jim Blandy
67ea079d85 *** empty log message *** 1998-12-05 16:55:41 +00:00
Jim Blandy
ceef320834 * smob.c (freeprint): New function.
(freecell): Use it to print freed objects, for slightly easier
debugging.
1998-12-05 16:52:34 +00:00
Mikael Djurfeldt
6ab397f48e *** empty log message *** 1998-12-04 11:41:18 +00:00
Mikael Djurfeldt
2e9d6c6d3c * backtrace.c (display_frame): Made more robust. Doesn't throw an
error if no source properties can be found for a frame.  (Thanks
to Christian Lynbech.)
1998-12-04 11:41:03 +00:00
Jim Blandy
349d9c1f86 *** empty log message *** 1998-12-02 14:31:21 +00:00
Jim Blandy
aa31443aed *** empty log message *** 1998-12-02 11:55:00 +00:00
Mikael Djurfeldt
7122506062 * boot-9.scm (process-define-module): Added new specifier
:autoload MODULENAME BINDINGS to the define-module form.
The autoload specifier tells the module system to load the module
MODULENAME at the first occasion that any variable with its name
among BINDINGS is referenced.
(make-autoload-interface): New procedure:  Constructs a stand-in
for the public interface for the module to be autoloaded.
1998-12-01 17:06:34 +00:00
Mikael Djurfeldt
3b3085c692 * boot-9.scm (*suppress-old-style-hook-warning*): Set this to #t
if you don't want the old style hook warnings.
1998-12-01 11:28:24 +00:00
Mikael Djurfeldt
49e5d550cb * boot-9.scm (try-using-libtool-name): Fix check on dlname to make
sure that it isn't empty, as it is when we are only buidling
static libraries.
1998-12-01 07:35:00 +00:00
Mikael Djurfeldt
afae5cbdcb *** empty log message *** 1998-11-26 18:05:20 +00:00
Mikael Djurfeldt
4a9f464eff * session.scm (arity): New procedure. 1998-11-26 18:04:46 +00:00
Mikael Djurfeldt
aa3bdf59ac * objects.h: Removed slots direct_supers and direct_slots from the
definitions of the rudimentary classes described by objects.h.
* objects.c, objects.h (scm_entity_p): New procedure.  Together
with the predicates scm_procedure_p and scm_struct_p, this
predicate makes it possible to differ between structs, entities
and operators.
1998-11-26 18:04:33 +00:00
Mikael Djurfeldt
19c0dec231 * objects.c, objects.h (scm_entity_p): New procedure. Together
with the predicates scm_procedure_p and scm_struct_p, this
predicate makes it possible to differ between structs, entities
and operators.
1998-11-26 18:03:02 +00:00
Mikael Djurfeldt
90184345a0 * modules.c, modules.h (scm_resolve_module): New function. 1998-11-26 17:59:15 +00:00
Mikael Djurfeldt
1f60d9d237 Warn that resolve-module is used by modules.c 1998-11-26 17:56:36 +00:00
Mikael Djurfeldt
3763ac3c74 *** empty log message *** 1998-11-26 08:42:27 +00:00
Mikael Djurfeldt
3203b6c9b3 Just synchronizing to my copy... 1998-11-26 08:41:56 +00:00
Mikael Djurfeldt
434b6fd23a Updated 1998-11-26 08:36:23 +00:00
Mikael Djurfeldt
91517e28d1 * procprop.c (scm_i_procedure_arity): Bugfix: Return correct value
for asubrs, rpsubrs, lsubrs and lsubr_2s.
1998-11-26 08:33:49 +00:00
Mikael Djurfeldt
f6b250bdde fix 1998-11-26 08:33:38 +00:00
Mikael Djurfeldt
04efd24d82 * boot-9.scm: Use run-hook instead of run-hooks everywhere. 1998-11-26 08:31:02 +00:00
Mikael Djurfeldt
0d2e4c1bec *** empty log message *** 1998-11-26 07:58:53 +00:00
Mikael Djurfeldt
03d1ed6f37 * procprop.h (scm_i_procedure_arity): Added declaration. 1998-11-26 07:44:53 +00:00
Mikael Djurfeldt
089067091c * procprop.c (scm_i_procedure_arity): Made global; New code to
handle operators and entities.
(scm_procedure_property): No need to call scm_procedure_p since
scm_i_procedure_arity now does all necessary type checking.
Added #include "objects.h".
1998-11-26 07:44:35 +00:00
Mikael Djurfeldt
e845cb8486 * feature.c, feature.h (scm_reset_hook_x): New procedure.
(scm_make_hook): Optional argument defines number of arguments to
the hook.
(scm_make_named_hook): Take number of args as second arg.
(scm_run_hook): Renamed from scm_run_hooks (old name kept for a
while); First arg is the hook.  The rest are arguments passed on
to the hook procedures.
1998-11-26 07:44:22 +00:00
Mikael Djurfeldt
b90d369ecf * feature.c (scm_remove_hook_x): Bugfix: Changed reference to
s_add_hook_x --> s_remove_hook_x.
(scm_add_hook_x, scm_remove_hook_x): Hooks now takes arguments.
Added #include "procprop.h"
* feature.c, feature.h (scm_reset_hook_x): New procedure.
(scm_make_hook): Optional argument defines number of arguments to
the hook.
(scm_make_named_hook): Take number of args as second arg.
(scm_run_hook): Renamed from scm_run_hooks (old name kept for a
while); First arg is the hook.  The rest are arguments passed on
to the hook procedures.
1998-11-26 07:44:09 +00:00
Mikael Djurfeldt
7a79c6b4d3 *** empty log message *** 1998-11-25 15:17:41 +00:00
Mikael Djurfeldt
d1406b6a40 * boot-9.scm (run-hooks, add-hook!, remove-hook!): Added temporary
code for backward compatibility until people have had time to
adapt to the new hooks.
1998-11-25 15:17:12 +00:00
Jim Blandy
69c6acbb74 *** empty log message *** 1998-11-23 10:27:27 +00:00
Jim Blandy
7217f8167c * numbers.c (scm_logand, scm_logior, scm_logxor, scm_logtest,
scm_logbit_p): Do the computation in ulongs.  This is not as nice
as doing it in bignums, but at least it's good enough for
manipulating flags in 32-bit words.  (Thanks to Jim Wilson.)
1998-11-23 10:24:35 +00:00
Jim Blandy
7c7471d93b * regex-posix.c (scm_regexp_exec): Reliably mark unmatched
subexpressions.  (Thanks to Charbel Jacquin.)
1998-11-23 10:24:09 +00:00
Mikael Djurfeldt
c04e89c78a Fix 1998-11-23 03:05:57 +00:00
Mikael Djurfeldt
a56eeb4674 *** empty log message *** 1998-11-23 02:39:47 +00:00
Mikael Djurfeldt
3e3cec458e * boot-9.scm (beautify-user-module!): Beautify also if public
interface is set to the module itself.  In this way we can use
beautify-user-module! to beautify a module prepared for object
code.
(process-define-module): Special case: Try to load object code as
well if a module does :use-module on itself.
* boot-9.scm: Bugfix: Since boot-9.scm is now loaded from
invoke_main_func, we can no longer be sure that all modules have
been registered when boot-9.scm is loaded.
(register-modules): New function: Register and tag modules
registered by scm_register_module_xxx since last call to this
function.  Modules are tagged with the dynamic object passed as
argument.  (Already linked modules should be tagged with #f.)
(init-dynamic-module, link-dynamic-module): Call register-modules
first to register linked modules.
* boot-9.scm (init-dynamic-module): Remove module from
registered-modules as soon as possible in case we are recursively
invoked; Set public interface before doing the dynamic-call.
* boot-9.scm (map-in-order): Removed (replaced by scm_serial_map).
(abort-hook, before-error-hook, after-error-hook,
before-backtrace-hook, after-backtrace-hook, before-read-hook,
after-read-hook, exit-hook): Make hooks with `make-hook'.
* boot-9.scm: Make hooks first class citizens and make them easier
to use from C:
(make-hook, add-hook!, remove-hook!, run-hooks): Moved to
libguile/feature.c.
* boot-9.scm: Added warnings about bindings used in
libguile/modules.c: the-module, set-current-module,
make-modules-in, beautify-user-module!, module-eval-closure.
1998-11-23 02:36:43 +00:00
Mikael Djurfeldt
281004cc98 * modules.c (scm_make_module): Beautify the module. 1998-11-23 02:35:11 +00:00
Mikael Djurfeldt
1330700c7d * feature.c, feature.h (scm_make_hook, scm_add_hook_x,
scm_remove_hook_x, scm_run_hooks): Moved from ice-9/boot-9.scm.
(scm_make_named_hook): New function.
* feature.c: Added #include "eval.h".
1998-11-23 02:34:49 +00:00
Mikael Djurfeldt
7e41462735 *** empty log message *** 1998-11-22 12:06:41 +00:00
Mikael Djurfeldt
4b07a787e3 Updated 1998-11-22 12:05:35 +00:00
Mikael Djurfeldt
1ffa265b7c * modules.c, modules.h: New files: C interface to modules. (This
is necessary in order to interface the object system to Guile
properly.  The guts of these modules will be replaced by the new
module system in the future.)
1998-11-22 12:05:14 +00:00
Mikael Djurfeldt
345acb3967 * init.c: Added #include "modules.h"
(scm_boot_guile_1): Call scm_init_modules.
(invoke_main_func): Call scm_post_boot_init_modules.
1998-11-22 12:04:27 +00:00
Mikael Djurfeldt
bafece68d3 * Makefile.am: Added modules.c, modules.x, modules.h. 1998-11-22 12:04:00 +00:00
Mikael Djurfeldt
631c1902df * boot-9.scm: Added warnings about bindings used in
libguile/modules.c: the-module, set-current-module,
make-modules-in, module-eval-closure.
1998-11-22 12:03:34 +00:00
Jim Blandy
bd0a8b6566 *** empty log message *** 1998-11-21 19:19:15 +00:00
Mikael Djurfeldt
17621f3e37 *** empty log message *** 1998-11-21 17:02:36 +00:00