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

17263 commits

Author SHA1 Message Date
Mikael Djurfeldt
c6ed3e26f4 * arbiters.c (scm_make_arbiter): Bugfix: Must SCM_DEFER_INTS
before constructing arbiter.
1997-03-09 15:29:21 +00:00
Mikael Djurfeldt
70ad422696 * eval.c (scm_m_define): Bugfix: Check that the object is a
closure before setting the procedure property!
1997-03-09 15:29:11 +00:00
Mikael Djurfeldt
dfefe3a693 * ports.h: Removed prototype for scm_ungetc_char_ready_p.
* ports.c: Removed `ungetc-char-ready?'.
1997-03-09 15:28:50 +00:00
Gary Houston
e3473097c7 typo 1997-03-08 22:55:06 +00:00
Gary Houston
fed9c9a2d4 * read.c (scm_init_read): intitialise scm_read_hash_procedures
(idea from Mikael: make it a pair so scm_permanent object only
	called once.)
	(scm_read_hash_extend): don't call scm_permanent_object.
	(ideas from Mikael): if chr is already in the list, replace its
	procedure instead of appending it again.  If chr is #f, remove
	it from the list.
	(scm_get_hash_procedure): take CDR of scm_read_hash_procedures.
1997-03-08 22:52:56 +00:00
Gary Houston
00c34e457c * boot-9.scm: swap order of a procedure. 1997-03-08 19:57:08 +00:00
Gary Houston
75a97b9224 * slib.scm: update read usage.
* r4rs.scm: update primitive-load usage.
Don't define read-sharp.

* boot-9.scm: use read-hash-extend to install extra read syntax.
(read-sharp): removed.
Adjust usage of primitive-load-path, read, which no longer take
case_i or read-sharp arguments.
1997-03-08 19:02:20 +00:00
Gary Houston
deca31e173 * strports.c (scm_read_0str, scm_eval_0str): update scm_read usage.
* gdbint.c (gdb_read): update scm_lreadr usage.

	* load.h: update prototypes.

	* load.c (scm_primitive_load, scm_read_and_eval_x,
	scm_primitive_load_path): remove case_insensitive_p, sharp arguments.

	* read.h: add prototype for scm_read_hash_extend.  Change args for
	other prototypes.

	* read.c (scm_read_hash_procedures): new variable.
	(scm_read_hash_extend): new procedure.
	(scm_get_hash_procedure): new procedure.
*	(scm_lreadr): use scm_get_hash_procedure instead of an argument
	for extended # processing.
	(scm_read, scm_lreadr, scm_lreadrecparen, scm_lreadparen,
	scm_read_token): remove case_i, sharp arguments.  Change callers.

	* read.h (SCM_N_READ_OPTIONS): increase to 3.
	(SCM_CASE_INSENSITIVE_P): define.

	* read.c: add case-insensitive option to scm_read_opts.
*	(scm_read_token): use SCM_CASE_INSENSITIVE_P instead of an argument
	to determine whether to convert symbol case.
	(default_case_i): definition removed.
	* read.c (scm_read_token): if case_i, downcase ic before doing
	anything with it.
1997-03-08 18:58:24 +00:00
Mikael Djurfeldt
90d5e28037 * boot-9.scm: Added loading of session support module.
* boot-9.scm (beautify-user-module!): Don't add the root module
interface to the end of the use-list of the root module.
1997-03-08 15:14:00 +00:00
Mikael Djurfeldt
25a301d67d *** empty log message *** 1997-03-08 14:46:39 +00:00
Mikael Djurfeldt
d88094f957 * procs.c (make-cclo): New undocumented debugging procedure: Make
compiled closure with internal procedure PROC and length LENGTH.
Only compiled if GUILE_DEBUG is defined.
1997-03-08 14:45:16 +00:00
Mikael Djurfeldt
f843a84c09 * print.c: Put #ifdef GUILE_DEBUG around `current-pstate'. 1997-03-08 14:45:01 +00:00
Mikael Djurfeldt
fea6b4eaf2 * ports.c: Changed preprocessor symbol DEBUG --> GUILE_DEBUG. 1997-03-08 14:43:41 +00:00
Mikael Djurfeldt
fe57f6521f * debug.c: Only include `debug-hang' if GUILE_DEBUG is defined. 1997-03-08 14:43:29 +00:00
Mikael Djurfeldt
280e515a28 * configure.in: Added configuration option `guile-debug'.
Configure with --enable-guile-debug if you want a bunch of extra
functions used for debugging when developing Guile.

* acconfig.h: Added new preprocessor symbol GUILE_DEBUG.
1997-03-08 14:43:05 +00:00
Mikael Djurfeldt
71d3aa6de5 * eval.c (SCM_CEVAL): Added code sections for handling of rpsubrs
with 3 or more args internally to the evaluator.
1997-03-08 03:03:16 +00:00
Mikael Djurfeldt
63a3d814b0 *** empty log message *** 1997-03-08 02:30:04 +00:00
Mikael Djurfeldt
3b326536e7 * debug.scm: Removed `display-application'. (Replaced by
primitive procedure.)
1997-03-08 02:29:45 +00:00
Mikael Djurfeldt
cc7f066cd0 * boot-9.scm (beautify-user-module!): Don't add the root module
interface to the end of the use-list of the root module.
1997-03-08 02:29:35 +00:00
Mikael Djurfeldt
a1e2cfe360 *** empty log message *** 1997-03-07 21:43:46 +00:00
Mikael Djurfeldt
399dedcca7 * eval.c (SCM_CEVAL): Added code sections for handling of asubrs
with 3 or more args internally to the evaluator.  This is mainly
because we don't want to pass entry and exit points of the
debug support twice, but it also seems to increase the speed of
the evaluator for such calls (e. g. (+ 1 2 3)).
1997-03-07 21:43:03 +00:00
Mikael Djurfeldt
a8485f4d34 * debug.h (SCM_RESET_DEBUG_MODE): Bugfix: The old code didn't
clear the CHECK-flags.
1997-03-07 21:42:44 +00:00
Mikael Djurfeldt
e3c37929e0 * * backtrace.c (scm_display_application): New procedure:
display-application; Set fancy printing parameters individually
	for different types of display (backtrace, error, application).
	(These should of course be customizable!)
1997-03-07 21:42:32 +00:00
Mikael Djurfeldt
bc6b266af0 *** empty log message *** 1997-03-06 22:57:45 +00:00
Mikael Djurfeldt
cd7522e92a Fancy printing. 1997-03-06 17:43:20 +00:00
Mark Galassi
b5522b48d2 started out the new reference manual organization 1997-03-06 17:13:31 +00:00
Mikael Djurfeldt
ee4274a654 * tags.h, eval.c (iqq): Fixes to comments about SCM_ECONSP. 1997-03-06 00:57:11 +00:00
Mikael Djurfeldt
b2530d665a * tags.h (SCM_ECONSP, SCM_NECONSP): Bugfix: Discriminate structs
from pairs with a GLOC in the car.

* symbols.c (msymbolize): Bugfix: Also initialize SCM_SYMBOL_HASH,
otherwise `symbol-hash' will behave badly.
(scm_symbol_hash): Bugfix: Must msymbolize if tc7_ssymbol, othwise
we get segmentation fault!

* symbols.c: Added #include "weaks.h".  New functions
`builtin-bindings' and `builtin-weak-bindings'.  (These will be
moved to an extraneous library when we split libguile.)
1997-03-05 22:49:12 +00:00
Mikael Djurfeldt
98672f5d06 Structs, SCM_SYMBOL_HASH 1997-03-05 22:48:22 +00:00
Gary Houston
f3c23298e9 * boot-9.scm: check use-emacs-interface for emacs support. 1997-03-05 21:08:06 +00:00
Marius Vollmer
a872de20a6 It's -*- change-log -*-, not -*- change-log-mode -*- 1997-03-04 20:46:24 +00:00
Mikael Djurfeldt
c0ebd8c5a8 * filesys.c (scm_stat): stat now takes fport arguments too as
documented in the manual.
1997-03-04 18:54:52 +00:00
Mikael Djurfeldt
2c4bd736ca * debug.c (scm_single_step): Bugfix: Call continuation with
scm_call_continuation instead of throwing to it.
1997-03-04 18:54:14 +00:00
Mikael Djurfeldt
f4da31819e Various notes which the developers share between eachother. 1997-03-03 20:47:31 +00:00
Gary Houston
44493941d8 * ports.c (scm_char_ready_p): bug fix: in SCM_PROC char-ready's
argument wasn't declared to be optional.
1997-03-03 09:22:58 +00:00
Gary Houston
7950df7c45 * boot-9.scm (scm-style-repl): call repl-report-start-timing if
read gets EOF.
* (exit): alias for quit.
1997-03-02 19:53:32 +00:00
Mikael Djurfeldt
876c87ce4e * stime.c (scm_init_stime): Add feature "current-time". 1997-03-02 15:40:23 +00:00
Gary Houston
1a36eef2ea * throw.h: prototype for scm_exit_status.
* throw.c (scm_handle_by_message): if a 'quit is caught, use its
args to derive an exit status.  Allows (quit) to work from a
script.
(scm_exit_status): new function.
#include "eq.h".
1997-03-02 07:32:19 +00:00
Gary Houston
8e44e7a0c7 * boot-9.scm (error-catching-loop thunk): use a status variable to
return the quit args.
(scm-style-repl): call -quit, passing return value from
error-catching-repl.  Make -quit return its args.
stand-along-repl: comment out, since it seems unused.
(top-repl): convert the value returned by scm-style-repl to
an integer and return it.

(error-catching-loop thunk): discard trailing junk after a (quit).
1997-03-02 06:09:41 +00:00
Mikael Djurfeldt
e6aa2a8a24 This is Tom Lord's old printer code. Since it isn't used any longer
it shouldn't be included in the distribution

But we may want to look at it later, so I add it to the repository.
1997-03-01 15:56:21 +00:00
Mikael Djurfeldt
06a02069fe * boot-9.scm: Removed the old printer code.
* r4rs.scm (apply, call-with-current-continuation): Added comment
explaining why apply and call/cc need to be closures.

* boot-9.scm (apply, call-with-current-continuation): Bugfix:
Removed. These definitions are already present in r4rs.scm.
1997-03-01 15:48:38 +00:00
Mikael Djurfeldt
cb3a178451 Added argument checking to trace. 1997-03-01 14:53:27 +00:00
Mikael Djurfeldt
9a942103f0 * debug.scm (trace-entry, trace-exit): Check that we're on a repl
stack before printing traced frames; Re-enable trace flag at end
of handlers.
1997-03-01 14:26:57 +00:00
Mikael Djurfeldt
c6a4fbce36 * eval.c (scm_deval): Removed some old code.
(ENTER_APPLY): Bugfix: Reset apply-frame trap on trap as is done
with the others.
(ENTER_APPLY, scm_deval): Reset trace flag on apply-frame and
exit-frame traps.
1997-03-01 14:23:27 +00:00
Mikael Djurfeldt
c7ec19832b Experimental hacks emulating the Guile-iii Tk interface. 1997-03-01 02:04:54 +00:00
Mikael Djurfeldt
7dd98e0b20 Experimental hack implementing the Guile side of a prototype Emacs
interface.
1997-03-01 02:04:00 +00:00
Mikael Djurfeldt
59e1116d05 * debug.scm: Add hook for reset of trace level at abort.
* boot-9.scm (run-hooks): New procedure.
	(add-hooks!): New macro.
	Change hooks to use these functions.
1997-03-01 01:34:23 +00:00
Mikael Djurfeldt
d5d34fa189 (Slight improvement from previous fix.) 1997-03-01 01:01:09 +00:00
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