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

15149 commits

Author SHA1 Message Date
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
Mikael Djurfeldt
7dc4b37a68 *** empty log message *** 1996-09-11 22:05:14 +00:00
Mikael Djurfeldt
380b6b4c32 * gdbint.c (gdb_read): Now possible to run during GC.
(unmark_port, remark_port): New functions.
1996-09-11 22:04:45 +00:00
Mikael Djurfeldt
85ab994756 * read.c (scm_grow_tok_buf): Use scm_vector_set_length_x instead
of allocating a new string object.  Also, increase size by
the factor 2 instead of 1.5.
1996-09-11 22:04:13 +00:00
Mikael Djurfeldt
836669b8eb * symbols.h (SCM_SETLENGTH): Use SCM_SETCAR. 1996-09-11 22:03:44 +00:00
Jim Blandy
d92b2b8972 *** empty log message *** 1996-09-11 20:30:27 +00:00
Jim Blandy
5e840c2e1a * numbers.h: Repeated declarations removed.
* ports.h (scm_close_all_ports_except): Declaration for the
function defined in ports.c added.

* posix.h: Missing declarations added.

* procs.h (scm_make_subr_opt): Missing declaration added.

* socket.h (scm_sys_gethost): Missing declaration added.

* socket.h: Redundant declarations removed (they are in fdsocket.h).

* srcprop.h (scm_set_source_property_x, scm_finish_srcprop):
Missing declarations added.

* stime.h (scm_get_internal_real_time): Repeated declarations removed.

* struct.c: Uninitialized variable `SCM answer' may be used.

* unif.c (l2ra): Declaration prototype.

* unif.c (scm_array_equal_p): Dummy definition removed (it is
defined in ramap.c).

* unif.h (scm_raprin1, scm_istr2bve, scm_array_equal_p):
Redundant declarations removed (they are in ramap.h).

* variable.h (scm_make_udvariable,
scm_make_undefined_variable): Declaration corrected to
correspond variable.c.

* vectors.h (scm_vector_move_left_x, scm_vector_move_right_x):
Missing declarations added.
1996-09-11 20:29:44 +00:00
Jim Blandy
3a2425b944 * numbers.c (scm_two_doubles): Changed from extern to static
(is used only within numbers.c).
1996-09-11 20:28:41 +00:00
Jim Blandy
cb2326360a * list.h (scm_list_head): Missing prototype for function in
list.c added.
1996-09-11 20:28:23 +00:00
Jim Blandy
c828e6ad2b * ioext.h: (scm_sys_isatty_p): Typo. 1996-09-11 20:28:10 +00:00
Jim Blandy
3d40d7b66a * init.c: Uninitialized `SCM last' may be used. 1996-09-11 20:27:47 +00:00
Jim Blandy
47ce0f920e * genio.c: Possible typos str_data -> wstr_data. ???
* genio.c: Possibly unintended shadowing of local variable
`int c' (gotos out of scope of inner `c'). ???
1996-09-11 20:27:32 +00:00
Jim Blandy
f1cf98fea1 * gc.h (scm_object_addr, scm_unhash_name): Missing
declarations of functions defined in gc.c added.
1996-09-11 20:27:02 +00:00
Jim Blandy
657c49b3f3 * filesys.c: Possibly uninitialized variable rv. 1996-09-11 20:26:10 +00:00
Jim Blandy
c01e049b10 * eval.h (scm_eval_args, scm_deval_args, scm_m_undefine):
Missing declarations to functions in eval.c added.
1996-09-11 20:25:44 +00:00
Jim Blandy
4ad6f70593 * debug.h: Missing declarations of functions in debug.c added
(lots).
1996-09-11 20:25:28 +00:00
Jim Blandy
bba4bfdbda * debug.c (scm_single_step, scm_memoized, scm_lookup_soft):
Definition typos corrected.
1996-09-11 20:25:13 +00:00
Jim Blandy
e95efac2fb * continuations.c (scm_dynthrow): Redundant declaration removed. 1996-09-11 20:24:50 +00:00
Jim Blandy
f899144940 * async.h (scm_async_clock): Redundant declaration removed. 1996-09-11 20:24:38 +00:00
Jim Blandy
ffa19a75a3 * async.c: Calls to scm_sysintern corrected.
* async.c (scm_async_clock): Redundant declaration removed.
1996-09-11 20:23:41 +00:00
Jim Blandy
c01fdefe6e * _scm.h (SCM_PROC): Extraneous semicolon (outside functions)
removed.
1996-09-11 20:23:30 +00:00
Jim Blandy
72713b2fd7 * __scm.h (SCM_P): Corrected to run under traditional C. 1996-09-11 20:22:58 +00:00
Jim Blandy
21dc7b4726 *** empty log message *** 1996-09-11 19:56:41 +00:00
Jim Blandy
99d0ee2264 * Makefile.in (distclean): Don't forget to delete
config.build-subdirs.
1996-09-11 19:55:50 +00:00
Jim Blandy
6f4d0b6811 * Makefile.in (distclean): Don't forget to delete fd.h. 1996-09-11 19:40:38 +00:00