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

9023 commits

Author SHA1 Message Date
Mikael Djurfeldt
ec98b5046c *** empty log message *** 1996-09-22 22:28:11 +00:00
Gary Houston
be2d2c708b * boot-9.scm (file-exists?, file-is-directory): catch only
system-error, not every kind of error.
(scm-error): new procedure.
1996-09-20 09:02:14 +00:00
Jim Blandy
434bf5ce78 . 1996-09-19 21:03:43 +00:00
Jim Blandy
151e0ee5ff . 1996-09-19 20:35:22 +00:00
Jim Blandy
3db587763b *** empty log message *** 1996-09-19 20:32:33 +00:00
Mikael Djurfeldt
bf39f34275 * read.c (scm_init_read): Removed #ifdef READER_EXTENSIONS 1996-09-19 14:17:27 +00:00
Mikael Djurfeldt
84f6a34a80 * print.c, print.h: Closures now print like #<procedure foo (x)>.
People who whish to see the source can do `(print-enable 'source)'.
Removed #ifdef DEBUG_EXTENSIONS.
1996-09-19 14:17:01 +00:00
Mikael Djurfeldt
d99bcec4ac *** empty log message *** 1996-09-19 14:16:25 +00:00
Gary Houston
f5bf2977c6 * filesys.c (scsm_sys_stat): don't SIGSEGV if argument is an
integer (assuming for now accepting an integer is a good thing).

	* error.c, fports.c: replace use of %S in lgh_error args with %s.
	%S will be used instead for write'ing arguments.

	* unif.c (scm_transpose_array): change arguments in the SCM_WNA
	asserts.  fix a few other asserts.
	(scm_aind, scm_enclose_array, scm_array_in_bounds_p,
	scm_uniform_vector_ref,	scm_array_set_x,
	scm_dimensions_to_unform_array): change args in
	SCM_WNA SCM_ASSERTS and change scm_wta's to scm_wrong_num_args.
	strop.c (scm_substring_move_left_x, scm_substring_move_right_x,
	scm_substring_fill_x): likewise.
	gsubr.c (scm_gsubr_apply): likewise.
	eval.c (SCM_APPLY): likewise.

	* eval.c (4 places): replace scm_everr with lgh_error or
	scm_wrong_num_args.

	* error.c, error.h (scm_wrong_num_args, scm_wrong_type_arg,
	scm_memory_error): new procedures.
*	scm_everr: deleted.  can use scm_wta, dropping first two args.
	scm_error: convert NULL subr to SCM_BOOL_F.

	* __scm.h: don't define SCM_STACK_OVFLOW, SCM_EXIT, SCM_ARG6, SCM_ARG7,
	SCM_ARGERR.

	* stackchk.c (scm_report_stack_overflow): use lgh_error instead
	of scm_wta.

	* error.c, error.h: new error keys: scm_arg_type_key,
	scm_args_number_key, scm_memory_alloc_key, scm_stack_overflow_key,
	scm_misc_error_key.
	scm_wta: reimplement using lgh_error instead of scm_everr.
1996-09-19 09:08:07 +00:00
Gary Houston
2194b6f00e * boot-9.scm (%%handle-system-error key): remove the code for
SCM-style errors.  handle the case that an unexpected number
	of args are supplied.
	(%%system-errors): removed.
	(error): redefine using a throw with key and 4 args.
	('error): associate 'error, 'error-signal keys with
	%%handle-system-error.
	(%%default-error-handler): removed.
	(signal-handler): throw with 4 args and use the error-signal key.
	Create an error message instead of using numerical codes.
	(%%bad-throw): call error instead of throw if key not found.

	* boot-9.scm: initialize new error keys (see libguile/ChangeLog).
	(%%handle-system-error key): check subr is not #f before printing.
	Recognize %s (embed an argument using "display") and
	%S (embed an argument using "write").
1996-09-19 09:04:55 +00:00
Mikael Djurfeldt
9fec1f77c3 * srcprop.h: Name changes: tc16_srcprops --> scm_tc16_srcprops,
_scm_make_srcprops --> scm_make_srcprops; Remove one layer of
function calls in the definition of the whash access macros.
1996-09-18 19:36:44 +00:00
Mikael Djurfeldt
5c5549cbca * srcprop.c (scm_finish_srcprop): Bugfix: update ptr.
(scm_init_srcprop): Adjusted size of initial source-whash.  Name
changes: tc16_srcprops --> scm_tc16_srcprops, _scm_make_srcprops
--> scm_make_srcprops
1996-09-18 19:36:29 +00:00
Mikael Djurfeldt
7e763bfcba * read.h: Added prototype for scm_lreadrecparen 1996-09-18 19:36:09 +00:00
Mikael Djurfeldt
09a4f0393d * read.c: Added code for recording of positions of source code
expressions; New functions: recsexpr, scm_lreadrecparen;
_scm_make_srcprops --> scm_make_srcprops
(scm_flush_ws): Removed updating of positions counters.  This work
is already done by scm_gen_getc
1996-09-18 19:35:48 +00:00
Mikael Djurfeldt
dbef8851ac * print.c: Added #include "alist.h" 1996-09-18 19:35:21 +00:00
Mikael Djurfeldt
d14af9f2d3 * ports.c, ports.h: Name change: scm_\(line\|column\)_number -->
scm_port_\1; Added mutator scm_set_port_filename_x (used when
loading source from non-file ports, which, e. g., happens when
using the Emacs interface).
1996-09-18 19:34:58 +00:00
Mikael Djurfeldt
a0fcb30863 * options.c: Documentation fixes. 1996-09-18 19:34:14 +00:00
Mikael Djurfeldt
65fddfc000 * gdbint.c: scm_lread now has one more argument. 1996-09-18 19:33:58 +00:00
Mikael Djurfeldt
96937708a9 * fports.c (scm_open_file): Don't call scm_makfrom0str on a scheme
object.
1996-09-18 19:33:43 +00:00
Mikael Djurfeldt
ac46ab165a * eval.c: Added #include "hash.h" 1996-09-18 19:33:22 +00:00
Mikael Djurfeldt
f23641a9d3 * eq.c: Added #include "ramap.h" 1996-09-18 19:32:40 +00:00
Mikael Djurfeldt
7dd604b948 *** empty log message *** 1996-09-18 19:32:24 +00:00
Gary Houston
ebf7394e72 * ports.h (scm_port_table): put back file_name, it will be used to
support debugging.  Undo related changes in fports.c, ioext.c,
ports.c, gc.c.
1996-09-17 02:09:50 +00:00
Gary Houston
19639113d1 * ports.h (scm_port_table): remove file_name member for now, it seems
undesirable.
	* fports.c (scm_open_file): don't set file_name in PTAB.
	(prinfport): don't use file_name in PTAB.
	* ioext.c (scm_sys_duplicate_port): don't set file_name in PTAB.
	* ports.c (scm_add_to_port_table): don't intialize file_name.
	(scm_port_file_name): remove for now.
	* gc.c (scm_gc_mark): don't mark PTAB file_name.

	* fports.h (scm_mkfile): prototype deleted.
	* fports.c (scm_mkfile): merged into scm_open_file to simplify.
1996-09-16 03:32:26 +00:00
Gary Houston
52859adfb9 * debug.c, unif.c: use scm_out_of_range instead of
wta for range errors (ASSERT still needs work).

* error.c, error.h (scm_out_of_range): new procedure.

* error.c, error.h (scm_out_of_range_key): new key.

* posix.c (scm_sync): #else was missing.

* error.c, error.h: append _key to names scm_num_overflow and
scm_system_error.

* __scm.h (SCM_SYSMISSING, SCM_NUM_OVERFLOW): use SCM_BOOL_F instead
of consing an empty list.
(SCM_SYSERROR etc.): move into error.c, make them procedures instead
of macros, saves code and string space.
error.c, fports.c, numbers.c, posix.c, ioext.c, filesys.c, socket.c,
fdsocket.c, simpos.c: change names of SCM_SYSERROR etc., to
lower case.  Rename scm_syserror_m to scm_syserror_msg.
error.h: prototypes for new procedures.
1996-09-15 06:41:31 +00:00
Gary Houston
234f2da620 * boot-9.scm (%%handle-system-error key): set args and rest to
the empty list if they are #f.
Initialize out-of-range as an error key.
1996-09-15 06:36:11 +00:00
Gary Houston
40c8906e1d * PLUGIN/REQ: try to make dependencies work right.
* PLUGIN/guile.config (xtra_dependencies): add only libgh.a.
(xtra_cflags): just add -L../lgh

* PLUGIN/guile.libs: try -lgh -lguile

* Makefile.am (INCLUDES): add -I../ so that libguile/scmconfig.h can
be found when srcdir != build dir.

* PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
1996-09-14 09:53:20 +00:00
Gary Houston
e1724d200d * numbers.c: use SCM_NUM_OVERFLOW instead of scm_wta or ASSERT.
* error.c, error.h: setup scm_num_overflow key.

* __scm.h: SCM_NUM_OVERFLOW: macro for reporting numerical overflow.
Remove definition of SCM_OVSCM_FLOW.

* fports.c (scm_open_file): use SCM_SYSERROR_M.

* __scm.h: SCM_SYSERROR_M: new macro for system errors with an
explicit message and args.

* error.c, error.h, __scm.h: change system_error_sym to
scm_system_error.

* error.c (system_error_sym): remove leading %% from the Scheme name
"%%system-error".

* __scm.h (SCM_SYSMISSING): Redefine using lgh_error.

* boot-9.scm: remove leading %% from references to '%%system-error.
(%%handle-system-error): don't pass all the thrown arguments when
aborting, just the key and subr.
Remove the code to "Install default handlers for built-in errors."
Remove the definition of the syserror procedure.
Associate 'numerical-overflow with default handler.
1996-09-14 07:47:50 +00:00
Mark Galassi
7d41a049f4 Added the new_procedure() stuff. 1996-09-13 22:55:07 +00:00
Mark Galassi
891ee51cde Adjusted the PLUGIN/REQ so that lgh is the last thing configured/built. 1996-09-13 20:41:03 +00:00
Jim Blandy
350294b16d . 1996-09-13 17:57:14 +00:00
Mikael Djurfeldt
05f9286947 *** empty log message *** 1996-09-13 13:32:46 +00:00
Mikael Djurfeldt
08b5b88cdf * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
tags.h, throw.c, variable.h: Name cleanup.  Lots of xxxSCM_yyy
removed.  (These were introduced by unsupervised name
substitution.)
1996-09-13 13:31:50 +00:00
Mikael Djurfeldt
e2806c1000 * __scm.h, chars.c, debug.c, eval.c, eval.h, extchrs.c, extchrs.h,
fdsocket.c, feature.c, mbstrings.c, mbstrings.h, numbers.c,
numbers.h, print.c, scmhob.h, simpos.h, symbols.c, symbols.h,
tags.h, throw.c, variable.h: Name cleanup.  Lots of xxxSCM_yyy
removed.  (These were introduced by unsupervised name
substitution.)
1996-09-13 11:07:24 +00:00
Mikael Djurfeldt
1a80fb07a7 *** empty log message *** 1996-09-13 03:02:53 +00:00
Mikael Djurfeldt
0dd5491c17 * boot-9.scm: Name change: value-ref --> local-ref
resolved-ref --> nested-ref  Motivation: conformance to the other
dictionary operators: list-ref operates on list, vector-ref
operates on vector, nested-ref operates on nested namespace,
local-ref operates on the local nested namespace.
1996-09-13 03:02:38 +00:00
Mark Galassi
d942b907f4 Should be a more complete distribution; will test one more time. 1996-09-13 00:00:58 +00:00
Mikael Djurfeldt
9a15c164c9 *** empty log message *** 1996-09-12 23:44:46 +00:00
Mikael Djurfeldt
a25840f95d * error.c (err_head): scm_iprin1 --> scm_prin1 1996-09-12 23:44:21 +00:00
Mikael Djurfeldt
c88edfaf17 * gscm.c (gscm_portprint_obj): scm_iprin1 --> scm_prin1 1996-09-12 23:44:12 +00:00
Mikael Djurfeldt
439791ec7b * gscm.h (gscm_print_obj): scm_iprin1 --> scm_prin1 1996-09-12 23:44:00 +00:00
Mikael Djurfeldt
a51ea417ba * print.c: Added code for detection of circular references during
printing.  (init_ref_stack, grow_ref_stack): New functions.  Added
a hook for printing of closures (accessible via print options).
This leads to a split of calls to scm_iprin1 into two classes:
elementary print operations (e. g. the code which prints a smob)
still use scm_iprin1 while top level calls (like scm_display) use
scm_prin1.  scm_prin1 begins by clearing the data structure used
to record reference information.
1996-09-12 23:43:47 +00:00
Mikael Djurfeldt
864f03aba4 * print.h: Added declarations of scm_prin1 and scm_prlist. 1996-09-12 23:43:34 +00:00
Mikael Djurfeldt
8781806909 * strports.c (scm_strprint_obj): scm_iprin1 --> scm_prin1 1996-09-12 23:43:18 +00:00
Mikael Djurfeldt
ee34012038 * debug.c: Adjusted header comment. 1996-09-12 23:39:37 +00:00
Mikael Djurfeldt
c6c790ed69 * tags.h: Typo. 1996-09-12 23:39:23 +00:00
Mark Galassi
2be50ff5e3 Adding the design documents and the lgh_ interface. 1996-09-12 03:18:12 +00:00
Mark Galassi
ea332eb257 Started merging the docs I wrote for Cygnus' Guile release with the
current FSF release.
1996-09-12 02:41:41 +00:00
Jim Blandy
1de1828496 . 1996-09-11 22:56:24 +00:00
Jim Blandy
dffa93b1b2 Doc fix. 1996-09-11 22:55:24 +00:00