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

9023 commits

Author SHA1 Message Date
Mikael Djurfeldt
9fbaf27ccb * print.c (scm_iprin1): Limit number of vector elements printed
according to pstate->length.
1997-03-11 15:02:29 +00:00
Gary Houston
14de3b4206 * read.c (scm_read_hash_extend): make scm_read_hash_procedures a
pointer to the Scheme variable read-hash-procedures and intern it
in scm_init_read. Modify scm_read_hash_extend and
scm_get_hash_procedure to use the pointer.
1997-03-11 03:57:04 +00:00
Mikael Djurfeldt
88e863c90b Added setting of keyword type. 1997-03-10 15:21:56 +00:00
Mikael Djurfeldt
90268b356b * boot-9.scm (process-define-module): Modified to handle both
keywords and symbols.
1997-03-10 15:10:48 +00:00
Mikael Djurfeldt
04798288c6 * boot-9.scm (process-define-module): Modified to handle both
keywords and symbols.
1997-03-10 15:03:41 +00:00
Mikael Djurfeldt
220ff1eb2f * eval.c: Fixed comment to unmemocopy. 1997-03-10 14:18:47 +00:00
Gary Houston
c773377128 * read.h (SCM_N_READ_OPTIONS): increase SCM_N_READ_OPTIONS to 4.
(SCM_KEYWORD_STYLE): defined.

	* read.c (scm_read_opts): add a keywords option.  This isn't a
	boolean option, in case someone wants to add support for DSSSL
	keywords too.
	Setup scm_keyword_prefix symbol.
	(scm_lreadr): Only process keywords if SCM_KEYWORD_STYLE is
	set to 'prefix.
*	I've left keyword support disabled by default, since it doesn't
	seem to break the module system and it gives R4RS standard behaviour.
	It can be reactivated with (read-set! keywords 'prefix).
1997-03-10 06:49:15 +00:00
Mikael Djurfeldt
d2d82421a6 *** empty log message *** 1997-03-09 15:46:09 +00:00
Mikael Djurfeldt
2d42545d55 *** empty log message *** 1997-03-09 15:41:44 +00:00
Mikael Djurfeldt
b045e53287 *** empty log message *** 1997-03-09 15:30:04 +00:00
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