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

765 commits

Author SHA1 Message Date
Mikael Djurfeldt
e6875011f4 * * debug.scm: *Warning* This feature is a bit premature. I add
it anyway because 1. it is very useful, and, 2. you can start
	making it less premature by complaining to me and by modifying
	the source! :-)
	(trace): Given one or more procedure objects, trace each one.
	Given no arguments, show all traced procedures.
	(untrace): Given one or more procedure objects, untrace each one.
	Given no arguments, untrace all traced procedures.  The tracing in
	Guile have an advantage to most other systems: We don't create new
	procedure objects, but mark the procedure objects themselves.
	This means that also anonymous and internal procedures can be
	traced.

	* boot-9.scm (error-catching-loop): Added handling of apply-frame
	and exit-frame exceptions.

*	* boot-9.scm (assert-repl-prompt, the-prompt-string): Removed.
	(set-repl-prompt!): Setter for repl prompt.
	(scm-style-repl): If prompt is #f, don't prompt; if prompt is a
	string, display it; if prompt is a thunk, call it and display its
	result; otherwise display "> ".
	(Change suggested by Roland Orre <orre@nada.kth.se>.)
1997-02-28 23:11:22 +00:00
Mikael Djurfeldt
77a6036bd1 * symbols.c (msymbolize): Bugfix: Must initialize property list to
SCM_EOL.
1997-02-28 23:10:00 +00:00
Mikael Djurfeldt
f76c22afd3 * procs.c: Introduce the existent C function scm_thunk_p at the
Scheme level as well.
1997-02-28 21:37:30 +00:00
Mikael Djurfeldt
0065d90e1a * r4rs.scm (%load-verbosely): Reverted change to
`module-defined?', since the module system isn't bootstrapped when
we load r4rs.scm.  This is just a temporary fix to make the
repository version runnable.
1997-02-27 23:05:23 +00:00
Mikael Djurfeldt
eb52a06bb3 * boot-9.scm: Removed the enabling of debug evaluator and
recording of source code positions.  This was placed there for our
convenience, but it has already sneaked into the distribution
once... so we'd better add this in our local copies instead when
we need it.  (These options are normally enabled at the end of
boot-9.scm when loading the debug module.)
1997-02-27 22:36:16 +00:00
Marius Vollmer
d18d1b6dd3 *** empty log message *** 1997-02-27 15:37:02 +00:00
Marius Vollmer
ed218d98d7 * boot-9.scm (module-defined?): New function.
(macroexpand-1, macroexpand): Use local-ref instead of defined?
and eval.
* r4rs.scm (%load-verbosely): Use "module-defined?" instead of
"defined?".
* slib.scm (defined?): New function to take the place of the
builtin "defined?".  It allways examines the slib module.
1997-02-27 15:36:04 +00:00
Mikael Djurfeldt
1dd28b3d65 * symbols.c, symbols.h (scm_symbol_value0): New function. Can be
used from C to easily lookup the value of a symbol in the current
module.
1997-02-26 12:08:26 +00:00
Mikael Djurfeldt
afa64ca818 *** empty log message *** 1997-02-24 23:47:26 +00:00
Mikael Djurfeldt
96abf47dfc * ltconfig, ltmain.sh: New versions from libtool-0.9. 1997-02-24 23:41:28 +00:00
Mikael Djurfeldt
15ae1beecf * configure.in: Added AM_MAINTAINER_MODE
Makefile.in, aclocal.m4, configure: Regenerated
1997-02-24 23:35:55 +00:00
Mikael Djurfeldt
175475a8fc * unif.c (scm_init_unif): Added #include "unif.x". (There are two
scm_init_unif in this file.  This will also fix a previous problem
with guile-snarf.)
1997-02-24 23:21:23 +00:00
Jim Blandy
49becc4d0a Moved paragraph about guile@cygnus.com into the section about getting
Guile.

Added paragraph describing what's installed, to make it more clear
that you only need libguile.a.
1997-02-24 19:56:30 +00:00
Mikael Djurfeldt
01c77a0aa2 * gdb_interface.h (GDB_INTERFACE): Added some (void *) casts to avoid
warnings.
1997-02-21 23:02:01 +00:00
Marius Vollmer
a7580a9738 *** empty log message *** 1997-02-21 18:22:50 +00:00
Marius Vollmer
78bda5f34f * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold
source files that are not always included in libguile but should
have their dependencies calculated by automake.  This variable is
recognized by automake, no further magic is needed.
(libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@.  Libtool wants
to deal exclusively with *.lo files, as it seems.  The *.o files
are built automatically when the corresponding *.lo file gets
built.
1997-02-21 18:21:53 +00:00
Jim Blandy
f6e372ed94 Update for post-1.0 release. 1997-02-21 03:21:36 +00:00
Jim Blandy
d655b1f27b Initial, incomplete revision of source code access module for Guile debugger. 1997-02-19 19:07:01 +00:00
Jim Blandy
413b4ab645 *** empty log message *** 1997-02-19 19:05:24 +00:00
Jim Blandy
9d0fddf0e4 * list.h (scm_list_cdr_ref): Delete prototype; function no longer
exists.
1997-02-19 19:05:11 +00:00
Gary Houston
0aa0871fc1 * unif.c (scm_array_set_x): minor change to argument error checking. 1997-02-15 18:49:59 +00:00
Gary Houston
c2132276b8 * boot-9.scm (read-sharp): define directly, don't go through a
%read-sharp layer.
* boot-9.scm (uniform-vector-set!): use uniform-array-set1!, not
uniform-vector-set1! which doesn't exist.
1997-02-15 18:48:12 +00:00
Jim Blandy
9dcf6a0294 * Makefile.am (libguile_la_SOURCES): Remove backtrace.c, debug.c,
inet_aton.c, srcprop.c, stacks.c, and strerror.c from this list.
They should only be included in the library at configure.in's
discretion.
(libguile_la_LDADD): Include the appropriate .lo files here.
(libguile_la_DEPENDENCIES): List the corresponding .o files here,
so we know when to build them (and their .lo bretheren).
* configure.in (LIBLOBJS): New substituted variable.  We let
configure decide which .o files to include in LIBOBJS, and then
put the corresponding list of .lo files in LIBLOBJS.  The latter
is what we pass to libtool.
* Makefile.in, configure: regenerated.
1997-02-11 23:25:55 +00:00
Mark Galassi
aaef0d2a45 * gh_funcs.c (gh_define): added this function.
* gh_init.c (gh_catch): fixed stupid bug, gh_catch() was not
 	returning anything.

	* gh_data.c (gh_scm2newstr): Renamed gh_scm2str0() to
	gh_scm2newstr(), and did away with the str0 convention (it doesn't
	seem to belong in gh_).
	(gh_scm2str): this function now copies Scheme data to a
	pre-allocated C string.
1997-02-10 23:39:51 +00:00
Mark Galassi
feaa557dc0 synching 1997-02-10 14:43:01 +00:00
Mikael Djurfeldt
d590bbf6d8 * boot-9.scm (backtrace): Removed. (A C version now exists in
backtrace.c.)
1997-02-10 01:05:50 +00:00
Mikael Djurfeldt
5aab5d961c * symbols.c (scm_sysintern0): New function. Contains the core of
old scm_sysintern but doesn't take a second value argument.
(scm_sysintern): Now uses scm_sysintern0.
(scm_sysintern_no_module_lookup): Renamed to
scm_sysintern0_no_module_lookup and doesn't take a second value
argument any longer.

* symbols.h (scm_sysintern0: Added declaration.

* options.c (scm_init_opts): Use scm_sysintern0 instead of
scm_sysintern when interning option keys.  Otherwise we risk
destroying the values of already interned variables.

* symbols.c (scm_sym2vcell): Bugfix: Treat definedp as
scheme-level boolean (use SCM_NFALSEP).

* backtrace.c (scm_init_backtrace): Make Scheme-level variable
`the-last-stack'.
(scm_backtrace): New function. (C version of old function from
boot-9.scm) Motivation: Make it possible to display backtraces
without depending on boot-9.scm.  (I'm uncertain if this
motivation is good enough...)

* root.h (scm_root_state): Add member the_last_stack_var.
(scm_the_stack_var): Defined to scm_root->the_last_stack_var.

* root.c (mark_root): Mark scm_the_last_stack_var.

* init.c (scm_start_stack): Initialize scm_the_last_stack_var to
SCM_BOOL_F.
1997-02-10 01:01:54 +00:00
Jim Blandy
b6b72ebaaa clean up last change 1997-02-09 22:01:42 +00:00
Jim Blandy
5edb9574ec change testing for repository relocation 1997-02-09 21:31:46 +00:00
Mark Galassi
f9df93c0da added Gary to author list for manual and changed a conflicting node name 1997-02-09 17:50:42 +00:00
Mikael Djurfeldt
3197e30d2e * throw.c (mark_lazy_catch, free_lazy_catch): Removed.
1. mark_lazy_catch didn't mark the smob.
2. Both functions above have standard variants:
(lazy_catch_funs): Changed mark_lazy_catch --> scm_mark0,
free_lazy_catch --> scm_free0.
1997-02-09 16:21:49 +00:00
Mikael Djurfeldt
c31916080a * configure.in: Added changequote(,) before the host case (since
we use [ and ] in a pattern).
* configure: Regenerated.
1997-02-09 13:29:55 +00:00
Jim Blandy
863b096edf *** empty log message *** 1997-02-07 23:02:10 +00:00
Jim Blandy
2b0d28bf71 * configure.in: Recognize i686 as an okay processor too. 1997-02-07 23:01:51 +00:00
Jim Blandy
4cfac47d9b * config.sub, config.guess: New versions, that handle i686, etc. 1997-02-07 22:58:26 +00:00
Jim Blandy
2e4fe934c1 *** empty log message *** 1997-02-07 22:41:10 +00:00
Jim Blandy
ccbfefb7cf * throw.c (scm_internal_lazy_catch): New function.
(scm_lazy_catch): Rewritten to use it.
(scm_ithrow): Handle the new lazy catch representation.
Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
that doesn't have a jmpbuf is a lazy catch clause.
(tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
free_lazy_catch, print_lazy_catch, lazy_catch_funs,
make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
smob.
(scm_init_throw): Register the new lazy-catch smob type.
* throw.h (scm_internal_lazy_catch): decl for new function.
1997-02-07 22:38:27 +00:00
Jim Blandy
3eed34754c * throw.c (scm_internal_lazy_catch): New function.
(scm_lazy_catch): Rewritten to use it.
(scm_ithrow): Handle the new lazy catch representation.
Use SCM_LAZY_CATCH_P, instead of assuming that any wind list entry
that doesn't have a jmpbuf is a lazy catch clause.
(tc16_lazy_catch, struct lazy_catch, mark_lazy_catch,
free_lazy_catch, print_lazy_catch, lazy_catch_funs,
make_lazy_catch, SCM_LAZY_CATCH_P): Support funs, including a new
smob.
(scm_init_throw): Register the new lazy-catch smob type.
* throw.h (scm_internal_lazy_catch): decl for new function.

* throw.c (scm_internal_catch): Doc fixes.
1997-02-07 22:38:20 +00:00
Jim Blandy
2b6b80bc0b * alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
configure.in.  Including this might cause problems if applications
that link against libguile include their own copies of alloca, but
if they're using autoconf, they should be adding libguile to LIBS
before calling AC_FUNC_ALLOCA anyway, in which case they'll find
the copy in libguile, and things will be okay.  (I think.)
1997-02-07 22:37:10 +00:00
Gary Houston
c101e39e41 * strop.c (scm_string_upcase_x, scm_string_downcase_x): moved from
unif.c.
strop.h: move prototypes too.
* posix.c (scm_init_posix): don't intern EINTR since it's now done
elsewhere.

* ioext.c (scm_init_ioext): don't intern stat macros, S_IRUSR
etc.  I deleted them from filesys.c long ago, but didn't
notice they were here too (although ineffective since
sys/stat.h wasn't included).
1997-02-06 07:05:08 +00:00
Tom Tromey
5862b540cd * eval.c: Don't define alloca in GCC case. gcc will automatically
use __builtin_alloca if appropriate.
1997-02-05 18:19:57 +00:00
Jim Blandy
052642874c *** empty log message *** 1997-02-05 00:25:25 +00:00
Jim Blandy
3c555f8151 *** empty log message *** 1997-02-05 00:20:01 +00:00
Jim Blandy
c687fa59a0 *** empty log message *** 1997-02-04 23:30:20 +00:00
Jim Blandy
c4ac4d8862 * eval.c (safe_setjmp): New function: trivial wrapper for setjmp.
(SCM_CEVAL, SCM_APPLY): Call it, instead of setjmp, to make sure
that values of automatic variables are preserved.  See comments
for safe_setjmp for details.
1997-02-04 23:30:07 +00:00
Jim Blandy
c4314b4ff4 *** empty log message *** 1997-02-04 22:22:19 +00:00
Jim Blandy
a7254b728d Change from Thomas Morgan:
* variable.c: Include eq.h.
(var_equal): New function.
(variable_smob): Use var_equal as the discriminator for variables.
1997-02-04 22:21:37 +00:00
Jim Blandy
995a6fd817 * throw.c (s_throw): Remove extraneous declaration. 1997-02-04 22:21:31 +00:00
Jim Blandy
bd4b91edbb *** empty log message *** 1997-02-04 22:13:52 +00:00
Jim Blandy
cda553163a * simpos.c (SYSTNAME): Accept both 'unix' and '__unix' as
indications of Unixness.
* stime.c: Same.
1997-02-04 22:00:42 +00:00