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

7322 commits

Author SHA1 Message Date
Jim Blandy
650fa1abe5 Add new interface to catch/throw, usable from C as well as
Scheme.
* throw.h (scm_catch_body_t, scm_catch_handler_t): New types.
(scm_internal_catch): New function, replaces...
(scm_catch_apply): Deleted.
* throw.c (scm_catch_apply): Deleted; replaced with a more general
mechanism which is a bit more code, but can be used nicely from C
and implement the Scheme semantics as well.
(scm_internal_catch): This is the replacement; it's named after
the analogous function in Emacs.
(scm_catch): Reimplemented in terms of the above.
(struct catch_body_data, catch_body, catch_handler): New
functions, used by scm_catch.
* root.c (cwdr): Reimplemented in terms of scm_internal_catch.
(struct cwdr_body_data, cwdr_body, cwdr_handler): New functions;
support for new cwdr.
1996-12-09 02:15:17 +00:00
Mark Galassi
10f74a138b little stuff 1996-12-08 20:28:36 +00:00
Marius Vollmer
0734d24657 *** empty log message *** 1996-12-08 17:14:42 +00:00
Marius Vollmer
f0cea46d8b * acconfig.h: Added DYNAMIC_LINKING symbol. 1996-12-08 17:10:34 +00:00
Marius Vollmer
abb2a7d007 * configure.in: Add option and checks for dynamic linking. 1996-12-08 17:06:38 +00:00
Marius Vollmer
496f55cd25 * Makefile.am (libguile_a_SOURCES):
Added "dynl.c".
(modinclude_HEADERS): Added "dynl.h".
(EXTRA_DIST): Added "dynl-dl.c", "dynl-dld.c", "dynl-shl.c" and
"dynl-vms.c".
1996-12-08 17:04:08 +00:00
Marius Vollmer
70122cd30d * init.c (scm_boot_guile_1): Call scm_init_dynamic_linking to
initialize dynamic linking support.

* init.c (scm_boot_guile_1): Moved `live' variable to the toplevel
(as we Schemers say). It needs to be global, so that I can tweak
it for the proper operation of unexec.
(scm_boot_guile_1_live): New variable, see above.
1996-12-08 16:57:16 +00:00
Marius Vollmer
1edae07624 Initial revision 1996-12-08 16:52:38 +00:00
Jim Blandy
a62ca5a1d3 Regenerated using patched automake-1.1k. 1996-12-08 06:21:24 +00:00
Mark Galassi
84da179fc3 some configuration fixes to get gtcltk to work for me 1996-12-07 04:25:26 +00:00
Tom Tromey
5b043bb2f3 Re-removed files restored after crash 1996-12-07 02:57:39 +00:00
Tom Tromey
733943b9d2 Changes to use automake-generated Makefile.ins everywhere 1996-12-03 05:34:34 +00:00
Jim Blandy
07304dad8a *** empty log message *** 1996-11-28 03:10:48 +00:00
Jim Blandy
4335fcae70 (ancillary): List ChangeLog-scm, not ChangeLog.scm. 1996-11-28 03:05:30 +00:00
Marius Vollmer
0aa1e432c0 * eval.c (scm_definedp): Use top_level_lookup_closure_var
and not top_level_lookup_thunk_var.
1996-11-27 23:29:29 +00:00
Marius Vollmer
4417e7a720 *** empty log message *** 1996-11-27 23:27:56 +00:00
Marius Vollmer
84abd24334 *** empty log message *** 1996-11-27 13:29:16 +00:00
Marius Vollmer
2c330db22c * eval.c (scm_definedp): Incompatibly changed to be a builtin
Scheme function, instead of syntax. Single argument is now a
symbol.
1996-11-27 13:28:38 +00:00
Marius Vollmer
ee33f8faed * eval.c (scm_definedp): Incompatibly changed to be a builtin
Scheme function, instead of syntax. Single argument is now a
symbol.
1996-11-27 13:22:58 +00:00
Jim Blandy
935aa279f6 *** empty log message *** 1996-11-21 16:28:51 +00:00
Jim Blandy
dc19d1d29a It's an "eval closure", not an "eval thunk." A thunk is a
function of no arguments.
* root.h (struct scm_root_state): Renamed
top_level_lookup_closure_var from top_level_lookup_thunk_var.
(scm_top_level_lookup_closure_var): Renamed from
scm_top_level_lookup_thunk_var.
* root.c (mark_root): Uses changed.
* gdbint.c (gdb_eval, gdb_binding): Uses changed.
* init.c (scm_start_stack): Uses changed.
* eval.c (scm_eval, scm_eval_x, scm_init_eval): Rename uses.
Change scheme-visible name to *top-level-lookup-closure* from
*top-level-lookup-thunk*.
1996-11-21 16:28:39 +00:00
Jim Blandy
4b28e0b88b Renamed to ChangeLog-scm from ChangeLog.scm, so it won't interfere with
my greps any more.
1996-11-21 16:03:02 +00:00
Jim Blandy
3763761c89 *** empty log message *** 1996-11-20 21:06:20 +00:00
Jim Blandy
ce4a361d99 * gc.c (scm_igc, scm_gc_mark): Round up the size of the stack we
pass to scm_mark_locations.  (Thanks to Aubrey Jaffer.)
1996-11-20 21:03:38 +00:00
Jim Blandy
8715b33106 *** empty log message *** 1996-11-10 20:48:17 +00:00
Jim Blandy
8f9a51ac66 *** empty log message *** 1996-11-10 20:46:46 +00:00
Jim Blandy
cf2d30f60f * gc.c (struct scm_heap_seg_data): Doc fixes.
* gc.c (scm_gc_sweep): Prepend each segment's free cells to its
freelist, rather than wiping out the old value.  (Thanks to Marius
Vollmer.)

* gc.c (which_seg, scm_map_free_list, scm_newcell_count,
scm_check_freelist, scm_debug_newcell): New functions and
variables, for debugging freelist problems.
* pairs.h (SCM_NEWCELL): New debugging version added.
* gc.h (scm_debug_newcell): Added extern declaration, used by
debugging version of SCM_NEWCELL.
1996-11-10 20:46:21 +00:00
Jim Blandy
88256b2e0e * gc.c (which_seg, scm_map_free_list, scm_newcell_count,
scm_check_freelist, scm_debug_newcell): New functions and
variables, for debugging freelist problems.
* pairs.h (SCM_NEWCELL): New debugging version added.
* gc.h (scm_debug_newcell): Added extern declaration, used by
debugging version of SCM_NEWCELL.
1996-11-10 20:46:11 +00:00
Jim Blandy
448a3bc269 spelling fix 1996-11-10 03:11:46 +00:00
Jim Blandy
8512dea604 *** empty log message *** 1996-11-10 00:15:36 +00:00
Jim Blandy
7471fb031f * fports.c (scm_stdio_to_port, scm_open_file): Set the port's
pointer to the stdio stream before calling scm_setbuf0, so the
latter will be able to retrieve it.  I'm surprised this didn't
segfault earlier.  (Thanks to Christopher Lee.)
1996-11-10 00:15:21 +00:00
Jim Blandy
3594582bd1 On some systems <libc.h> conflicts with <unistd.h>, and should not
be #included at all.
* aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro.
* configure.in: Call it.
* acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol.
* posix.c, filesys.c: Use its results to decide whether or not to
#include <libc.h>.
* configure, scmconfig.h.in: Rebuilt with autoconf and
autoheader.
1996-11-10 00:14:45 +00:00
Mikael Djurfeldt
23e89125a2 *** empty log message *** 1996-11-06 15:05:20 +00:00
Mikael Djurfeldt
97a307b982 * throw.c (scm_lazy_catch, scm_ithrow): Completed implementation
of `lazy-catch'.
1996-11-06 15:05:00 +00:00
Mikael Djurfeldt
7ad737b69b *** empty log message *** 1996-11-02 20:54:28 +00:00
Mikael Djurfeldt
f6f88e0d94 * * stacks.c, stacks.h (scm_make_stack): Now takes arbitrary
number of stack narrowing specifier pairs.  The first specifier in
	a pair controls inner border, the second the outer border.  A
	number means cut that number of frames, a procedure object means
	cut until that object is found in operator position in a frame.
1996-11-02 20:54:19 +00:00
Mikael Djurfeldt
308277cbb4 * root.c (cwdr): Bugfix. 1996-11-02 20:54:08 +00:00
Mikael Djurfeldt
ac74fc22fb * * read.c: Recording of positions disabled by default. 1996-11-02 20:54:03 +00:00
Mikael Djurfeldt
ecdb5eb2f1 * * procs.c (scm_closure_p): New function. 1996-11-02 20:53:58 +00:00
Mikael Djurfeldt
9ee5fce45d * * posix.c (scm_tmpnam): New function. 1996-11-02 20:53:53 +00:00
Mikael Djurfeldt
19a18b54db * * load.c, load.h (scm_read_and_eval_x): New function. 1996-11-02 20:53:47 +00:00
Mikael Djurfeldt
b35d06a4bb * load.c: Added #include "throw.h".
*	* load.c, load.h (scm_read_and_eval_x): New function.
1996-11-02 20:53:42 +00:00
Mikael Djurfeldt
11f77bfcc9 * * eval.c: Renamed debug option "deval" to "debug". 1996-11-02 20:53:32 +00:00
Mikael Djurfeldt
44b5e41db4 * * debug.h: Changed semantics of debug option "backtrace". This
option now only indicates whether we want automatic backtrace at
	an error.
1996-11-02 20:53:24 +00:00
Mikael Djurfeldt
e38ecb055c * debug.c (scm_m_start_stack): Bugfix: Use SCM_ECONSP instead of
SCM_CONSP since this is a macro!; Set vframe.prev to
scm_last_debug_frame instead of 0.  In this way we can look
"above" the virtual start stack frame if we wish.
(scm_debug_hang): New function: Useful for debugging Guile in
certain tricky situations.  Will probably be removed later...
1996-11-02 20:53:18 +00:00
Mikael Djurfeldt
e412e180d4 * _scm.h: Added #ifndef around definition of macros min and max. 1996-11-02 20:52:58 +00:00
Mikael Djurfeldt
25d3ee9d80 * __scm.h: Added hooks for threads to plugin to in ints protection
macros: SCM_THREAD_DEFER, SCM_THREAD_ALLOW, SCM_THREAD_REDEFER,
 	SCM_THREAD_ALLOW_1, SCM_THREAD_ALLOW_2.  Motivation: We don't want
 	the main code in these macros duplicated and spread over multiple
 	files. Renamed SCM_THREADS_SWITCHING_CODE ->
 	SCM_THREAD_SWITCHING_CODE.
1996-11-02 20:52:39 +00:00
Mikael Djurfeldt
fd7932d3a6 * libguile.h: #include "libguile/libpath.h" 1996-10-30 23:36:51 +00:00
Mikael Djurfeldt
5d09ff4ea7 * ports.c: #include "filesys.h"
(scm_char_ready_p): input_waiting renamed and moved to filesys.c.
1996-10-30 23:35:06 +00:00
Mikael Djurfeldt
3feedb0011 * load.c, load.h (scm_sys_package_data_dir): New function. 1996-10-30 23:34:33 +00:00