Mikael Djurfeldt
fcd69146b1
*** empty log message ***
1996-10-15 14:06:29 +00:00
Mikael Djurfeldt
c01c94bf26
*** empty log message ***
1996-10-15 12:27:01 +00:00
Mikael Djurfeldt
5f771ab149
* boot-9.scm ((signal-handler n)): Bugfix: Moved the recording of
...
the stack to the correct place: when it is decided to generate an
error-signal.
1996-10-15 12:26:49 +00:00
Mikael Djurfeldt
7bf80fd0e4
*** empty log message ***
1996-10-15 03:40:31 +00:00
Mikael Djurfeldt
bf685b6d20
* print.c (make_print_state, grow_print_state), print.h: Modified
...
the print state representation: Don't use a tail array for
recording of circular references. Resizing of the print state
structure invalidates the print state pointer. To avoid passing
around an indirect print state reference to all printing
functions, we instead let the print state reference a resizable
vector.
1996-10-15 03:40:21 +00:00
Jim Blandy
2a786759c1
*** empty log message ***
1996-10-15 00:14:14 +00:00
Jim Blandy
14d1400fa7
Allocate data for structures on an eight-byte boundary, as
...
required by the tagging system.
* struct.c (alloc_struct): New function.
(scm_make_struct, scm_make_vtable_vtable): Call it.
* struct.h (scm_struct_n_extra_words): Bump to 3.
(scm_struct_i_ptr): New "field".
* gc.c (scm_gc_sweep): When we need to free the data, use the
information stored by alloc_struct to find the beginning of the
block allocated to the structure, so we can free it.
1996-10-15 00:10:59 +00:00
Mikael Djurfeldt
2dfc85c018
*** empty log message ***
1996-10-14 20:29:16 +00:00
Mikael Djurfeldt
4cdee789b7
* boot-9.scm (error-catching-loop, signal-handler,
...
handle-system-error): Backtracing now works for signals aswell;
Backtracing mechanism can now identify the stack root created by
start-stack so that the user isn't exposed to system stack frames.
1996-10-14 20:28:39 +00:00
Mikael Djurfeldt
c6b8a41a55
* debug.c (scm_procedure_name): Try procedure property `name' for
...
compiled closures aswell.
1996-10-14 20:28:18 +00:00
Mikael Djurfeldt
473c250d0a
* debug.h (SCM_VOIDFRAME, SCM_VOIDFRAMEP): New macros.
...
(scm_debug_info): New member: id.
1996-10-14 20:28:13 +00:00
Mikael Djurfeldt
38bd0b3b0e
* eval.c: scm_i_name moved to gsubr.c
...
(scm_m_define): Record names of all kinds of procedure
objects. (Earlier, only closures were recorded.)
1996-10-14 20:28:08 +00:00
Mikael Djurfeldt
8960e0a0c4
* gc.c (scm_init_storage): Initialize scm_stand_in_procs to SCM_EOL.
1996-10-14 20:27:51 +00:00
Mikael Djurfeldt
abae3119ee
* eval.c: scm_i_name moved to gsubr.c
...
(scm_m_define): Record names of all kinds of procedure
objects. (Earlier, only closures were recorded.)
* gsubr.c: Added global scm_i_name. Added #include "procprop.h".
(scm_make_gsubr): Record names of compiled closures.
1996-10-14 20:27:45 +00:00
Mikael Djurfeldt
7439c0b988
* init.c (scm_boot_guile_1): Moved scm_init_struct in front of
...
scm_init_stacks.
1996-10-14 20:27:39 +00:00
Mikael Djurfeldt
e1bd234308
* procprop.h: Added declaration of scm_i_name.
...
* gsubr.c: Added global scm_i_name. Added #include "procprop.h".
(scm_make_gsubr): Record names of compiled closures.
1996-10-14 20:27:20 +00:00
Mikael Djurfeldt
66f45472b5
* stacks.c: Stacks are now represented as structs; Stacks have an
...
id given to them by `start-stack'.
(scm_last_stack_frame): Added predicates `stack?' and `frame?'.
1996-10-14 20:27:14 +00:00
Mikael Djurfeldt
b902ec8513
* stacks.h: Added declarations of scm_stack_p and scm_frame_p;
...
Changed stack representation.
1996-10-14 20:27:07 +00:00
Mikael Djurfeldt
84d8ad9726
*** empty log message ***
1996-10-14 04:08:01 +00:00
Mikael Djurfeldt
bf05754893
* Makefile.in: Added threads.scm.
1996-10-14 04:07:53 +00:00
Mikael Djurfeldt
294d380662
*** empty log message ***
1996-10-14 03:44:37 +00:00
Mikael Djurfeldt
4f0292cfdb
*** empty log message ***
1996-10-14 03:28:57 +00:00
Mikael Djurfeldt
6d2388ee6c
* debug.scm (make-enable, make-disable): Simplified.
1996-10-14 03:28:35 +00:00
Mikael Djurfeldt
9b7def6677
* boot-9.scm: Renamed %%throw-handler-default -->
...
throw-handler-default.
((handle-system-error key . arg-list)): Changed the way errors are
reported.
((scm-style-repl)): Wrap up the call to eval in a start-stack
acro.
((error-catching-loop thunk)): Introduce a lazy-catch into
error-catching-loop so that the stack can be captured.
1996-10-14 03:28:26 +00:00
Mikael Djurfeldt
49bc24feca
* symbols.c (scm_sym2ovcell): Fixed documentation.
1996-10-14 03:27:11 +00:00
Mikael Djurfeldt
02aa5a4c2f
* init.c: Added #include "backtrace.h" and #include "stacks.h".
...
(scm_boot_guile_1): Added calls to scm_init_backtrace and
scm_init_stacks.
* Makefile.in: Added entries for new files: backtrace.c,
backtrace.h, stacks.c and stacks.h.
1996-10-14 03:26:57 +00:00
Mikael Djurfeldt
782d171cf0
* continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
...
stacks.c: Renamed regs --> scm_contregs.
* Makefile.in: Added entries for new files: backtrace.c,
backtrace.h, stacks.c and stacks.h.
1996-10-14 03:26:51 +00:00
Mikael Djurfeldt
34019bd652
* srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
...
scm_i_line, scm_i_column and scm_i_breakpoint global.
1996-10-14 03:26:44 +00:00
Mikael Djurfeldt
a4645b977f
* srcprop.c (scm_source_properties, scm_set_source_properties_x,
...
s_set_source_property_x): Check that first argument is a pair or a
memoized object.
* srcprop.c, srcprop.h: Made scm_i_filename, scm_i_copy,
scm_i_line, scm_i_column and scm_i_breakpoint global.
1996-10-14 03:26:37 +00:00
Mikael Djurfeldt
0db18cf45a
* continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
...
stacks.c: Renamed regs --> scm_contregs.
1996-10-14 03:26:29 +00:00
Mikael Djurfeldt
6cb66921f6
* print.h: Added selector SCM_PRINT_STATE.
...
* print.h: Added declarations for scm_make_print_state,
scm_free_print_state.
1996-10-14 03:26:21 +00:00
Mikael Djurfeldt
698c029502
* print.c (scm_free_print_state): Cleanup print state before
...
returning it to pool. It is better to do it here than in
scm_prin1 since scm_prin1 is called often.
* print.c (make_print_state): Bugfix: Initialize pstate->ceiling.
* print.c: New functions: scm_make_print_state,
scm_free_print_state.
1996-10-14 03:26:13 +00:00
Mikael Djurfeldt
0e44fcca98
* continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
...
stacks.c: Renamed regs --> scm_contregs.
* init.c: Added #include "backtrace.h" and #include "stacks.h".
(scm_boot_guile_1): Added calls to scm_init_backtrace and
scm_init_stacks.
* init.c (scm_boot_guile_1): Moved scm_init_debug below
scm_init_eval.
1996-10-14 03:25:59 +00:00
Mikael Djurfeldt
4e646a03d6
* eval.c: Added new debug options maxdepth' and
indent'.
1996-10-14 03:25:40 +00:00
Mikael Djurfeldt
fcbb26b21f
* debug.c, debug.h: Removed obsolete code.
...
* debug.h: Added debug object smob declaration and macro
definitions.
* debug.h: New debug options SCM_BACKTRACE_MAXDEPTH and
SCM_BACKTRACE_INDENT.
* debug.h: Small cleanup.
1996-10-14 03:25:31 +00:00
Mikael Djurfeldt
bfe3154c01
* debug.c, debug.h: Removed obsolete code.
...
* continuations.c, continuations.h, debug.c, gc.c, init.c, root.c,
stacks.c: Renamed regs --> scm_contregs.
* * debug.c (scm_m_start_stack): New acro.
1996-10-14 03:25:21 +00:00
Mikael Djurfeldt
9ab71a53ad
* configure.in: Build with backtrace.o and stacks.o if debug
...
support enabled.
1996-10-14 03:24:57 +00:00
Mikael Djurfeldt
ab4f3efbfc
* Makefile.in: Added entries for new files: backtrace.c,
...
backtrace.h, stacks.c and stacks.h.
1996-10-14 03:24:16 +00:00
Mikael Djurfeldt
8cac820d17
* async.c: Moved `min' macro to _scm.h.
1996-10-14 03:24:09 +00:00
Mikael Djurfeldt
462a6f1f0c
* _scm.h (min, max): Added.
...
* async.c: Moved `min' macro to _scm.h.
1996-10-14 03:24:01 +00:00
Jim Blandy
1cc91f1b29
* __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
...
arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
chars.c, chars.h, continuations.c, continuations.h, debug.c,
debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
declare functions with prototypes. (Patch thanks to Marius
Vollmer.)
1996-10-14 01:33:50 +00:00
Jim Blandy
1717856b4e
* __scm.h, alist.c, alist.h, append.c, append.h, appinit.c,
...
arbiters.c, arbiters.h, async.c, async.h, boolean.c, boolean.h,
chars.c, chars.h, continuations.c, continuations.h, debug.c,
debug.h, dynwind.c, dynwind.h, eq.c, eq.h, error.c, eval.c,
eval.h, extchrs.c, extchrs.h, fdsocket.c, fdsocket.h, filesys.c,
filesys.h, fports.c, fports.h, gc.c, gdb_interface.h, gdbint.c,
gdbint.h, genio.c, genio.h, gscm.c, gscm.h, gsubr.c, gsubr.h,
hash.c, hash.h, hashtab.c, hashtab.h, init.c, ioext.c, ioext.h,
kw.c, kw.h, libguile.h, mallocs.c, mallocs.h, markers.c,
markers.h, mbstrings.c, mbstrings.h, numbers.c, numbers.h,
objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
procprop.h, procs.c, procs.h, ramap.c, ramap.h, read.c, read.h,
root.c, scmsigs.c, scmsigs.h, sequences.c, sequences.h, simpos.c,
simpos.h, smob.c, socket.c, socket.h, srcprop.c, srcprop.h,
stackchk.c, stackchk.h, stime.c, stime.h, strings.c, strings.h,
strop.c, strop.h, strorder.c, strorder.h, strports.c, strports.h,
struct.c, struct.h, symbols.c, symbols.h, tag.c, tag.h, unif.c,
unif.h, variable.c, variable.h, vectors.c, vectors.h, version.c,
version.h, vports.c, vports.h, weaks.c, weaks.h: Use SCM_P to
declare functions with prototypes. (Patch thanks to Marius
Vollmer.)
More prototype-related changes from Marius Vollmer:
* gdb_interface.h: Wrapped header file in #ifdef/#endif
* gscm.h (gscm_run_scm): Added prototype for `initfn' paramter.
* ports.h (ptobfuns): Added prototypes. This means some casting in
fports.c.
* fports.c: Added casts for initializations, since the functions
are defined to take FILE * as their stream argument, not SCM.
* fdsocket.c, fdsocket.h: Made `init_addr_buffer' static.
* genio.c (scm_gen_puts): Changed `unsigned char *str_data' parameter
to `char *str_data' to conform to prototype.
1996-10-14 01:28:01 +00:00
Jim Blandy
0682f7ab1d
*** empty log message ***
1996-10-14 00:58:55 +00:00
Jim Blandy
b145c1720c
* eval.c (scm_nconc2last): Don't accept an empty list; apply must
...
be given at least two arguments. Insist that lst's last element
be a list, but don't make any requirements of its predecessors.
1996-10-14 00:58:30 +00:00
Gary Houston
01f61221f4
* error.c, eval.c, load.c, stackchk.c: use scm_error not lgh_error.
...
* __scm.h (lgh_error): removed, lgh shouldn't be in libguile.
* stime.c, stime.h: use SCM_P method.
1996-10-12 21:59:40 +00:00
Jim Blandy
9518bec3de
*** empty log message ***
1996-10-11 20:14:11 +00:00
Jim Blandy
e886fe6292
*** empty log message ***
1996-10-11 08:59:59 +00:00
Jim Blandy
1e79802357
* eval.c (scm_nconc2last): Revert last change; there seems to be
...
other stuff going on here.
1996-10-11 08:59:38 +00:00
Jim Blandy
1eaceb6160
*** empty log message ***
1996-10-11 07:58:43 +00:00
Jim Blandy
d60cebe257
* vectors.c (scm_make_vector): Fill vectors with the undefined
...
value, to help make Guile Scheme code more portable to other
Schemes.
1996-10-11 07:58:13 +00:00