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

9538 commits

Author SHA1 Message Date
Mikael Djurfeldt
a8aa30d896 * * strports.c, strports.h: Make scm_eval_0str return the value of
the last expression evaluated (previously, it returned void).

*	* strports.c, strports.h: New function: scm_read_0str.  Does what
	it sounds like.
1996-12-13 19:41:18 +00:00
Mikael Djurfeldt
dbe2648143 *** empty log message *** 1996-12-13 19:41:07 +00:00
Mikael Djurfeldt
a65b9c802e * strings.c (scm_string scm_make_string scm_string_ref
scm_string_set_x scm_string_equal_p scm_string_append):
Bugfix according to scm patch from Aubrey Jaffer:
Corrected long-standing
(not (eqv? (integer->char 128)
	   (string-ref (make-string 1 (integer->char 128)) 0)))
bug found by John Kozak <jk@noontide.demon.co.uk>.
1996-12-13 19:40:57 +00:00
Mikael Djurfeldt
dd2c906423 * libguile.h: Added #include "libguile/backtrace.h", #include
"libguile/stacks.h".
1996-12-13 19:40:45 +00:00
Mark Galassi
f9d81b6bcb updated the Makefile.in files with the right automake 1.1l 1996-12-13 02:50:04 +00:00
Mark Galassi
0fedd45c50 some more work on handlers for gh 1996-12-12 02:59:15 +00:00
Gary Houston
9373b38711 * simpos.c (scm_getenv): return #f if string can't be found in the
environment instead of throwing an exception, for compatibility
with numerous other systems.
1996-12-11 19:06:31 +00:00
Tom Tromey
adb75a4155 guile-snarf script once again used for creating .x files 1996-12-10 06:25:08 +00:00
Jim Blandy
52b60d44fb *** empty log message *** 1996-12-10 01:42:08 +00:00
Jim Blandy
f3acc5c15f * backtrace.c (scm_display_error_message): Made non-static, and
renamed from display_error_message.
* backtrace.h (scm_display_error_message): Added extern decl.
* throw.c (uncaught_throw): Use it to display the error message.
1996-12-10 01:41:37 +00:00
Jim Blandy
e82afdb843 Don't print extra newline. 1996-12-09 23:53:47 +00:00
Gary Houston
8588fa1267 * ioext.c (scm_sys_ftell): use scm_long2num instead of SCM_MAKINUM
to convert the returned value.
(scm_sys_fseek): use scm_num2long instead of SCM_INUM to convert
the offset argument.
1996-12-09 20:52:37 +00:00
Tom Tromey
5ce61f2470 Fixed erroneous use of #ifdef 1996-12-09 20:21:47 +00:00
Jim Blandy
f8d0b1924e Rebuilt from Makefile.am. 1996-12-09 02:22:44 +00:00
Jim Blandy
a73b898540 * Makefile.am (libpath.h): Re-incorporate Mikael's changes of Wed
Oct 30.
1996-12-09 02:20:11 +00:00
Jim Blandy
5b9ad5c2db *** empty log message *** 1996-12-09 02:16:35 +00:00
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