bpt/guile.git
17 years agomerge from 1.8 branch (removing this file)
Kevin Ryde [Mon, 9 Oct 2006 23:27:59 +0000 (23:27 +0000)]
merge from 1.8 branch (removing this file)

17 years agomerge from 1.8 branch
Kevin Ryde [Mon, 9 Oct 2006 22:59:10 +0000 (22:59 +0000)]
merge from 1.8 branch

17 years agomerge from 1.8 branch
Kevin Ryde [Mon, 9 Oct 2006 22:47:06 +0000 (22:47 +0000)]
merge from 1.8 branch

17 years ago(GDS Getting Started): Editorial updates.
Neil Jerram [Sun, 8 Oct 2006 08:24:00 +0000 (08:24 +0000)]
(GDS Getting Started): Editorial updates.

17 years ago(Working with GDS in Scheme Buffers): New
Neil Jerram [Sun, 8 Oct 2006 08:19:13 +0000 (08:19 +0000)]
(Working with GDS in Scheme Buffers): New
subsection, to group (Access to Guile Help and Completion, Setting
and Managing Breakpoints, Evaluating Scheme Code) together.

17 years ago(Access to Guile Help and Completion): Mention where keys are
Neil Jerram [Fri, 6 Oct 2006 00:10:36 +0000 (00:10 +0000)]
(Access to Guile Help and Completion): Mention where keys are
defined.
(Setting and Managing Breakpoints): Update text on how to set
breakpoints.

17 years ago(Using Guile in Emacs): Subnodes reordered,
Neil Jerram [Thu, 5 Oct 2006 23:55:22 +0000 (23:55 +0000)]
(Using Guile in Emacs): Subnodes reordered,
from (Displaying the Scheme Stack, Continuing Execution,
Evaluating Scheme Code, Setting and Managing Breakpoints, Access
to Guile Help and Completion) to (Access to Guile Help and
Completion, Setting and Managing Breakpoints, Evaluating Scheme
Code, Displaying the Scheme Stack, Continuing Execution).

17 years ago(new-input-prompt): Renamed from "prompt".
Neil Jerram [Thu, 5 Oct 2006 23:28:44 +0000 (23:28 +0000)]
(new-input-prompt): Renamed from "prompt".
(continuation-prompt): Renamed from "prompt2".
(make-readline-port, readline, set-readline-prompt!): Reflect above renamings.
(activate-readline): Rename locals "read-hook" and "prompt" to
"repl-read-hook" and "repl-prompt", to disambiguate them from
globals.  Save and restore the new-input- and continuation-
prompts around the REPL read call.

17 years ago(run-utility): Remove unnecessary
Neil Jerram [Tue, 3 Oct 2006 19:21:48 +0000 (19:21 +0000)]
(run-utility): Remove unnecessary
`connect-to-gds' call.

17 years ago(GDS Getting Started): Editorial updates.
Neil Jerram [Tue, 3 Oct 2006 19:20:50 +0000 (19:20 +0000)]
(GDS Getting Started): Editorial updates.

17 years ago(debug-trap): Use
Neil Jerram [Sat, 30 Sep 2006 17:21:52 +0000 (17:21 +0000)]
(debug-trap): Use
`debugger-command-loop' instead of `read-and-dispatch-commands',
which isn't actually available.  Thanks to Carlos Pita for
reporting this.
(debugger-command-loop): Define here for 1.6.x.

17 years ago(GDS Introduction, GDS Getting Started): Minor
Neil Jerram [Thu, 28 Sep 2006 07:41:49 +0000 (07:41 +0000)]
(GDS Introduction, GDS Getting Started): Minor
edits.

17 years ago(Symbol Props): Remove unnecessarily specific
Neil Jerram [Thu, 28 Sep 2006 07:32:40 +0000 (07:32 +0000)]
(Symbol Props): Remove unnecessarily specific
parenthesis about Guile 1.6's use of extra symbol slots.

17 years ago(Slot Options): Added example from Ludovic Courtès
Neil Jerram [Wed, 27 Sep 2006 17:49:38 +0000 (17:49 +0000)]
(Slot Options): Added example from Ludovic Courtès
about difference between init-value, -form and -thunk.

17 years ago(Using Guile in Emacs, GDS Introduction):
Neil Jerram [Tue, 26 Sep 2006 21:43:52 +0000 (21:43 +0000)]
(Using Guile in Emacs, GDS Introduction):
Editorial updates.
(GDS Architecture): Moved earlier in containing section; editorial
updates.
(GDS Getting Started, How to Use GDS): Merged; editorial updates;
subsections reordered.

17 years ago* scheme-using.texi (Error Handling, Interactive Debugger): Minor
Neil Jerram [Mon, 25 Sep 2006 21:05:46 +0000 (21:05 +0000)]
* scheme-using.texi (Error Handling, Interactive Debugger): Minor
editorial improvements.
(Leave Debugger): Removed.
(Display Backtrace): Minor updates.
(Frame Selection, Frame Information, Frame Evaluation) : Minor
editorial improvements.
(Stepping and Continuing): Merged from three previous nodes; plus
minor improvements.  Removed doc for `trace-finish', which no
longer exists.

* debugging/ice-9-debugger-extensions.scm (debugger:step):
Docstring improvements.
(debugger:next): Docstring improvements.
(debugger:continue): Docstring improvements.

* debugger/commands.scm (up, down): Docstring corrections.
(info-args, info-frame, position, evaluate): Docstring
improvements.

17 years agoFix typo.
Neil Jerram [Mon, 25 Sep 2006 20:37:23 +0000 (20:37 +0000)]
Fix typo.

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Wed, 20 Sep 2006 13:13:34 +0000 (13:13 +0000)]
Changes from arch/CVS synchronization

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Wed, 20 Sep 2006 12:48:45 +0000 (12:48 +0000)]
Changes from arch/CVS synchronization

17 years ago*** empty log message ***
Rob Browning [Wed, 20 Sep 2006 00:34:02 +0000 (00:34 +0000)]
*** empty log message ***

17 years ago(build-link): Restore the removal of "/usr/lib" (in addition to
Rob Browning [Wed, 20 Sep 2006 00:33:56 +0000 (00:33 +0000)]
(build-link): Restore the removal of "/usr/lib" (in addition to
"/usr/lib/" from any -L arguments).

17 years agoDoc typo fixes
Neil Jerram [Fri, 15 Sep 2006 09:23:18 +0000 (09:23 +0000)]
Doc typo fixes

17 years ago*** empty log message ***
Rob Browning [Fri, 1 Sep 2006 01:38:18 +0000 (01:38 +0000)]
*** empty log message ***

17 years ago(scm_c_port_for_each): Add a scm_remember_upto_here_1(ports) at the
Rob Browning [Fri, 1 Sep 2006 01:37:57 +0000 (01:37 +0000)]
(scm_c_port_for_each): Add a scm_remember_upto_here_1(ports) at the
end of the function to fix a GC bug.

17 years ago(Debug on Error): Added paragraph on need to use
Neil Jerram [Tue, 29 Aug 2006 22:47:41 +0000 (22:47 +0000)]
(Debug on Error): Added paragraph on need to use
debugging evaluator.  Added text on what the Guile REPL code does.

17 years ago(scm_display_backtrace_with_highlights): Minor
Neil Jerram [Mon, 28 Aug 2006 22:17:26 +0000 (22:17 +0000)]
(scm_display_backtrace_with_highlights): Minor
improvements to docstring.
(scm_backtrace_with_highlights): Analogous improvements.

17 years ago(Examining the Stack): Minor improvements to
Neil Jerram [Mon, 28 Aug 2006 22:16:42 +0000 (22:16 +0000)]
(Examining the Stack): Minor improvements to
display-backtrace doc.
(Debug on Error): More new text on catching the error stack.

17 years ago(Debug on Error): New text on how to catch errors
Neil Jerram [Sun, 27 Aug 2006 14:06:16 +0000 (14:06 +0000)]
(Debug on Error): New text on how to catch errors
and the error stack.

17 years ago(Using Guile in Emacs): New text about
Neil Jerram [Wed, 23 Aug 2006 22:11:24 +0000 (22:11 +0000)]
(Using Guile in Emacs): New text about
available Emacs libraries.
(GDS Introduction): New node, containing GDS-specific introductory
text.

17 years ago* gds-server.el (gds-start-server): Change "ossau" to "ice-9".
Neil Jerram [Fri, 18 Aug 2006 14:21:23 +0000 (14:21 +0000)]
* gds-server.el (gds-start-server): Change "ossau" to "ice-9".

* gds-scheme.el (gds-start-utility-guile): Change "ossau" to
"ice-9".

17 years ago* configure.in: Generate Makefile for emacs subdir.
Neil Jerram [Fri, 18 Aug 2006 14:19:44 +0000 (14:19 +0000)]
* configure.in: Generate Makefile for emacs subdir.

* Makefile.am (SUBDIRS): Add emacs subdir.

* configure.in: Generate Makefile for ice-9/debugging subdir.

17 years ago.cvsignore file
Neil Jerram [Fri, 18 Aug 2006 13:43:09 +0000 (13:43 +0000)]
.cvsignore file

17 years ago* configure.in: Generate Makefile for ice-9/debugging.
Neil Jerram [Fri, 18 Aug 2006 13:41:45 +0000 (13:41 +0000)]
* configure.in: Generate Makefile for ice-9/debugging.

* debugging/trc.scm: New file.

* debugging/traps.scm: New file.

* debugging/trace.scm: New file.

* debugging/steps.scm: New file.

* debugging/load-hooks.scm: New file.

* debugging/ice-9-debugger-extensions.scm: New file.

* debugging/example-fns.scm: New file.

* debugging/breakpoints.scm: New file.

* debugging/Makefile.am: New.

* Makefile.am (SUBDIRS): Add debugging.

17 years ago(Using Guile in Emacs): Unignore extra GDS
Neil Jerram [Fri, 18 Aug 2006 13:14:46 +0000 (13:14 +0000)]
(Using Guile in Emacs): Unignore extra GDS
intro text.  (I will edit this down later.  For now it's
convenient to have it all appearing, so it's visible on paper.)

17 years ago* scheme-using.texi (Run To Frame Exit): Improved doc for finish.
Neil Jerram [Fri, 11 Aug 2006 16:21:14 +0000 (16:21 +0000)]
* scheme-using.texi (Run To Frame Exit): Improved doc for finish.
(Continue Execution): Improved doc for continue.
(Using Guile in Emacs): Lots of new docs about the Emacs
interface.

* api-debug.texi (Low Level Trap Calls): New.
(Using Traps): Removed, material incorporated into Low Level Trap
Calls.
(High Level Traps): New.
(Breakpoints): New.

* scheme-using.texi (Single Stepping): Improve doc for step and
next.

* api-debug.texi (Debug on Error): Note need to handling of errors
in C.

17 years ago(Debugging): New intro text. New subsection
Neil Jerram [Fri, 11 Aug 2006 15:38:19 +0000 (15:38 +0000)]
(Debugging): New intro text.  New subsection
"Evaluation Model".  Moved existing subsections "Capturing the
Stack or Innermost Stack Frame", "Examining the Stack", "Examining
Stack Frames", "Source Properties", "Decoding Memoized Source
Expressions" and "Starting a New Stack" under "Evaluation Model".
(Capturing the Stack or Innermost Stack Frame): Some new text, and
correction to doc for last-stack-frame.
(Debug on Error): Renamed from "Interactive Debugging".

17 years ago(scm_last_stack_frame): Correct docstring (returns a
Neil Jerram [Fri, 11 Aug 2006 15:33:41 +0000 (15:33 +0000)]
(scm_last_stack_frame): Correct docstring (returns a
frame, not a stack).

17 years ago* api-debug.texi (Breakpoints): Removed (all wrong).
Neil Jerram [Tue, 1 Aug 2006 21:51:12 +0000 (21:51 +0000)]
* api-debug.texi (Breakpoints): Removed (all wrong).

* guile.texi (API Reference): Improved summary for "Debugging"
menu item.

17 years ago* scheme-debugging.texi (Debug Last Error, Interactive Debugger):
Neil Jerram [Tue, 1 Aug 2006 21:33:17 +0000 (21:33 +0000)]
* scheme-debugging.texi (Debug Last Error, Interactive Debugger):
Moved/merged to scheme-using.texi, as REPL features.
(Examples): New.
(Intro to Breakpoints): New introductory text here.  Removed all
subnodes except for Breakpoints Overview.

* scheme-using.texi: New.

* guile.texi (Programming in Scheme): Include new
scheme-using.texi file.

* Makefile.am (guile_TEXINFOS): Include new scheme-using.texi
file.

17 years ago*** empty log message ***
Rob Browning [Wed, 19 Jul 2006 06:56:37 +0000 (06:56 +0000)]
*** empty log message ***

17 years agoAdd __attribute__ ((returns_twice)) to the ia64_getcontext prototype
Rob Browning [Wed, 19 Jul 2006 06:56:30 +0000 (06:56 +0000)]
Add __attribute__ ((returns_twice)) to the ia64_getcontext prototype
so that gcc will make the right arrangements and avoid an illegal
instruction during call-with-current-continuation.

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Wed, 12 Jul 2006 08:07:27 +0000 (08:07 +0000)]
Changes from arch/CVS synchronization

17 years ago* Makefile.am (ice9_sources): Add new files.
Neil Jerram [Mon, 19 Jun 2006 22:37:13 +0000 (22:37 +0000)]
* Makefile.am (ice9_sources): Add new files.

* gds-client.scm, gds-server.scm: New files.

17 years ago* Makefile.am: New file.
Neil Jerram [Mon, 19 Jun 2006 22:01:23 +0000 (22:01 +0000)]
* Makefile.am: New file.

* gds.el, gds-scheme.el, gds-server.el: New files.

17 years agomerge from 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 23:41:24 +0000 (23:41 +0000)]
merge from 1.8 branch

17 years agomerge from 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 23:29:46 +0000 (23:29 +0000)]
merge from 1.8 branch

17 years agomerge from 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 23:15:59 +0000 (23:15 +0000)]
merge from 1.8 branch

17 years agomerge from 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 22:57:28 +0000 (22:57 +0000)]
merge from 1.8 branch

And: show "1.8" not "1.10" in effective version, that being what it
was at the time of that news entry

17 years agomerge from 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 22:53:04 +0000 (22:53 +0000)]
merge from 1.8 branch

17 years agomerge 1.8 branch
Kevin Ryde [Sat, 17 Jun 2006 22:47:50 +0000 (22:47 +0000)]
merge 1.8 branch

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Fri, 16 Jun 2006 07:39:59 +0000 (07:39 +0000)]
Changes from arch/CVS synchronization

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Tue, 13 Jun 2006 08:14:01 +0000 (08:14 +0000)]
Changes from arch/CVS synchronization

17 years agoAdded `structs.test'.
Ludovic Courtès [Tue, 13 Jun 2006 07:56:41 +0000 (07:56 +0000)]
Added `structs.test'.

17 years agoChanges from arch/CVS synchronization
Ludovic Courtès [Tue, 13 Jun 2006 07:48:42 +0000 (07:48 +0000)]
Changes from arch/CVS synchronization

17 years ago(ACX_PTHREAD): Update to latest definition from
Neil Jerram [Tue, 6 Jun 2006 21:39:43 +0000 (21:39 +0000)]
(ACX_PTHREAD): Update to latest definition from
autoconf macro archive, to fix pthread linking problem on Solaris
10, reported by Charles Gagnon.

17 years ago* eq.c (scm_equal_p): Use scm_array_equal_p explicitely when one
Marius Vollmer [Mon, 29 May 2006 21:54:13 +0000 (21:54 +0000)]
* eq.c (scm_equal_p): Use scm_array_equal_p explicitely when one
of the arguments is a array.  This allows vectors to be equal to
one-dimensional arrays.

* tests/unif.test ("vector equal? one-dimensional array"): New.

17 years ago(scm_ithrow): When looking for the jmpbuf, first test that we have a
Marius Vollmer [Mon, 29 May 2006 20:35:48 +0000 (20:35 +0000)]
(scm_ithrow): When looking for the jmpbuf, first test that we have a
pair before accessing its cdr.  Thanks to Bill Schottstaedt!

18 years agoDelete test file after all tests have run in order to make "make
Marius Vollmer [Sat, 27 May 2006 22:24:24 +0000 (22:24 +0000)]
Delete test file after all tests have run in order to make "make
distcheck" work.

18 years agoReplace SCM_C_INLINE with SCM_C_INLINE_KEYWORD. Thanks to Mark Gran!
Marius Vollmer [Sat, 27 May 2006 21:32:22 +0000 (21:32 +0000)]
Replace SCM_C_INLINE with SCM_C_INLINE_KEYWORD.  Thanks to Mark Gran!

18 years ago*** empty log message ***
Marius Vollmer [Sat, 27 May 2006 21:31:32 +0000 (21:31 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Marius Vollmer [Sat, 27 May 2006 21:05:07 +0000 (21:05 +0000)]
*** empty log message ***

18 years ago(CELL_P): Also check that the potential pointer is
Marius Vollmer [Sun, 7 May 2006 22:51:06 +0000 (22:51 +0000)]
(CELL_P): Also check that the potential pointer is
correctly aligned for a cell.  Thanks to Miroslav Lichvar!

18 years ago(SCM_BENCHMARKS_DIRS, dist-hook): Removed, they are
Marius Vollmer [Mon, 1 May 2006 21:32:21 +0000 (21:32 +0000)]
(SCM_BENCHMARKS_DIRS, dist-hook): Removed, they are
no longer needed and lead to unclean tarballs.

18 years agoChanged "1.7" to "1.10" in description of the effective version.
Marius Vollmer [Mon, 1 May 2006 21:07:20 +0000 (21:07 +0000)]
Changed "1.7" to "1.10" in description of the effective version.
Thanks to Jon Wilson!

18 years ago*** empty log message ***
Kevin Ryde [Mon, 17 Apr 2006 01:48:50 +0000 (01:48 +0000)]
*** empty log message ***

18 years ago(lstat): Allow for test-symlink not existing yet.
Kevin Ryde [Mon, 17 Apr 2006 01:48:14 +0000 (01:48 +0000)]
(lstat): Allow for test-symlink not existing yet.

18 years ago*** empty log message ***
Kevin Ryde [Mon, 17 Apr 2006 01:36:55 +0000 (01:36 +0000)]
*** empty log message ***

18 years agoBump lib file version to libguilereadline-v-18,
Kevin Ryde [Mon, 17 Apr 2006 01:35:37 +0000 (01:35 +0000)]
Bump lib file version to libguilereadline-v-18,
matching LIBGUILEREADLINE-VERSION.

18 years ago*** empty log message ***
Kevin Ryde [Mon, 17 Apr 2006 01:26:12 +0000 (01:26 +0000)]
*** empty log message ***

18 years ago(scm_to_off_t, scm_from_off_t): No error if unknown off_t
Kevin Ryde [Mon, 17 Apr 2006 01:23:37 +0000 (01:23 +0000)]
(scm_to_off_t, scm_from_off_t): No error if unknown off_t
size, to help the guile-readline build where off_t is unused.

18 years agoCorrection to "not a Guile release" warning, show 1.8 not 1.6.
Kevin Ryde [Mon, 17 Apr 2006 00:38:33 +0000 (00:38 +0000)]
Correction to "not a Guile release" warning, show 1.8 not 1.6.

18 years agodrop extra 2006-02-06 heading
Kevin Ryde [Mon, 17 Apr 2006 00:29:38 +0000 (00:29 +0000)]
drop extra 2006-02-06 heading

18 years agounduplicate --enable-arrays removal entry
Kevin Ryde [Mon, 17 Apr 2006 00:20:43 +0000 (00:20 +0000)]
unduplicate --enable-arrays removal entry

18 years agomerge from 1.8 branch
Kevin Ryde [Mon, 17 Apr 2006 00:18:11 +0000 (00:18 +0000)]
merge from 1.8 branch

18 years agomerge from 1.8 branch
Kevin Ryde [Mon, 17 Apr 2006 00:05:42 +0000 (00:05 +0000)]
merge from 1.8 branch

18 years agomerge from 1.8 branch
Kevin Ryde [Sun, 16 Apr 2006 23:43:48 +0000 (23:43 +0000)]
merge from 1.8 branch

18 years agomerge from 1.8 branch
Kevin Ryde [Sun, 16 Apr 2006 23:37:40 +0000 (23:37 +0000)]
merge from 1.8 branch

18 years agomerge from 1.8 branch
Kevin Ryde [Sun, 16 Apr 2006 23:18:55 +0000 (23:18 +0000)]
merge from 1.8 branch

18 years agomerge from 1.8 branch
Kevin Ryde [Sun, 16 Apr 2006 23:05:07 +0000 (23:05 +0000)]
merge from 1.8 branch

18 years agoTest for SCM_HAVE_T_UINT64 instead of
Mikael Djurfeldt [Sun, 19 Feb 2006 16:34:51 +0000 (16:34 +0000)]
Test for SCM_HAVE_T_UINT64 instead of
SCM_HAVE_T_INT64.
(scm_i_uniform32, scm_i_uniform32, scm_i_init_rstate): Use
scm_t_uint64 and scm_t_uint32 instead of scm_t_int64 and
scm_t_int32.

18 years agoLudovic's patch for scm_t_sweep_statistics.
Han-Wen Nienhuys [Tue, 14 Feb 2006 11:38:30 +0000 (11:38 +0000)]
Ludovic's patch for scm_t_sweep_statistics.

18 years ago(Object Properties): Removed confusing
Marius Vollmer [Mon, 13 Feb 2006 21:42:41 +0000 (21:42 +0000)]
(Object Properties): Removed confusing
paragraph about 'name' property.

18 years ago* deprecated.scm (make-uniform-array): Don't pass the prototype as
Marius Vollmer [Sun, 12 Feb 2006 01:01:46 +0000 (01:01 +0000)]
* deprecated.scm (make-uniform-array): Don't pass the prototype as
the fill value, dimensions->uniform-array will do the right thing
now.  See scm_dimensions_to_uniform_array why we need to be tricky
about the fill value.

* unif.c (scm_dimensions_to_uniform_array): Use the prototype for
filling when the fill parameter is omitted, as documented, but
turn #\nul into 0 since s8 arrays (signified by a #\nul prototype)
can not store characters.

18 years ago(scm_c_make_socket_address): Pass address_size pointer
Neil Jerram [Thu, 9 Feb 2006 14:27:05 +0000 (14:27 +0000)]
(scm_c_make_socket_address): Pass address_size pointer
on to scm_fill_sockaddr call.

18 years agoBumped versions for 1.9 series.
Marius Vollmer [Sun, 5 Feb 2006 22:57:57 +0000 (22:57 +0000)]
Bumped versions for 1.9 series.

18 years ago(Basic Generic Function Creation): Added blurb about
Marius Vollmer [Sun, 5 Feb 2006 22:57:34 +0000 (22:57 +0000)]
(Basic Generic Function Creation): Added blurb about
merge-generics duplicates handler from NEWS-

18 years ago * configure.in: Removed --enable-arrays option.
Marius Vollmer [Sun, 5 Feb 2006 22:56:51 +0000 (22:56 +0000)]
* configure.in: Removed --enable-arrays option.

18 years ago* GUILE-VERSION: Bumped versions for 1.9 series.
Marius Vollmer [Sun, 5 Feb 2006 22:56:34 +0000 (22:56 +0000)]
* GUILE-VERSION: Bumped versions for 1.9 series.

* srfi-1.scm, srfi-60.scm: Updated versions in library name to
match GUILE-VERSION.

18 years ago* boot-9.scm (try-module-autoload): Make sure that module code is
Neil Jerram [Sat, 4 Feb 2006 15:57:16 +0000 (15:57 +0000)]
* boot-9.scm (try-module-autoload): Make sure that module code is
loaded with the default reader (current-reader #f).  Thanks to
Ludovic Courtès for pointing this problem out.

18 years ago19 new test cases.
Neil Jerram [Sat, 4 Feb 2006 14:36:43 +0000 (14:36 +0000)]
19 new test cases.
(throw-test): New macro for testing catches and throw handlers.

18 years ago* throw.h (scm_c_catch, scm_c_with_throw_handler,
Neil Jerram [Sat, 4 Feb 2006 14:36:24 +0000 (14:36 +0000)]
* throw.h (scm_c_catch, scm_c_with_throw_handler,
scm_catch_with_pre_unwind_handler, scm_with_throw_handler): New.

* throw.c (SCM_JBPREUNWIND, SCM_SETJBPREUNWIND): New.
(struct pre_unwind_data): New, replaces struct lazy_catch.
(scm_c_catch): New, replaces scm_internal_catch as the primary
catch API for C code; adds pre-unwind handler support.
(scm_internal_catch): Now just a wrapper for scm_c_catch, for back
compatibility.
(tc16_pre_unwind_data, pre_unwind_data_print,
make_pre_unwind_data, SCM_PRE_UNWIND_DATA_P): Renamed from
"lazy_catch" equivalents.
(scm_c_with_throw_handler): New, replaces scm_internal_lazy_catch
as the primary C API for a "lazy" catch.
(scm_internal_lazy_catch): Now just a wrapper for
scm_c_with_throw_handler, for back compatibility.
(scm_catch_with_pre_unwind_handler): Renamed from scm_catch; adds
pre-unwind handler support.
(scm_catch): Now just a wrapper for
scm_catch_with_pre_unwind_handler, for back compatibility.
(scm_with_throw_handler): New.
(scm_lazy_catch): Update comment to say that the handler can
return, and what happens if it does.
(toggle_pre_unwind_running): New.
(scm_ithrow): When identifying the throw target, take running
flags into account.  In general, change naming of things from
"lazy_catch" to "pre_unwind".  When throwing to a throw handler,
don't unwind the dynamic context first.  Add dynwind framing to
manage the running flag of a throw handler.  If a lazy catch or
throw handler returns, rethrow the same exception again.  Add
pre-unwind support to the normal catch case (SCM_JMPBUFP).

* root.c (scm_internal_cwdr): Add NULL args to
scm_i_with_continuation_barrier call.

* dynwind.c: Change comment mentioning lazy-catch to mention
pre-unwind data and throw handler also.

* continuations.h (scm_i_with_continuation_barrier): Add
pre-unwind handler args.

* continuations.c (scm_i_with_continuation_barrier): Add
pre-unwind handler args, and pass on to scm_c_catch (changed from
scm_internal_catch).
(c_handler): Remove scm_handle_by_message_noexit call.
(scm_c_with_continuation_barrier): Call
scm_i_with_continuation_barrier with scm_handle_by_message_noexit
as the pre-unwind handler.
(scm_handler): Remove scm_handle_by_message_noexit call.
(s_scm_with_continuation_barrier): Call
scm_i_with_continuation_barrier with scm_handle_by_message_noexit
as the pre-unwind handler.

18 years ago* stack-catch.scm (stack-catch): Use catch pre-unwind handler
Neil Jerram [Sat, 4 Feb 2006 14:36:06 +0000 (14:36 +0000)]
* stack-catch.scm (stack-catch): Use catch pre-unwind handler
instead of lazy-catch.

* boot-9.scm (error-catching-loop): Use catch pre-unwind handler
instead of lazy-catch.

18 years ago(Throw Handlers): New node.
Neil Jerram [Sat, 4 Feb 2006 14:35:53 +0000 (14:35 +0000)]
(Throw Handlers): New node.
(Throw): Moved to after the Lazy Catch node.
(Catch): Enhance to cover the optional pre-unwind handler, and new
APIs scm_c_catch, scm_catch_with_pre_unwind_handler.
(Lazy Catch): Describe relationship to with-throw-handler.
Document that the handler may return, and what happens if it does.
(Throw): Mention that a throw can be handled by a throw handler as
well as by a catch.

18 years ago*** empty log message ***
Kevin Ryde [Sat, 4 Feb 2006 01:01:23 +0000 (01:01 +0000)]
*** empty log message ***

18 years ago(Network Address Conversion, Network Databases)
Kevin Ryde [Sat, 4 Feb 2006 01:00:57 +0000 (01:00 +0000)]
(Network Address Conversion, Network Databases)
(Network Sockets and Communication, Internet Socket Examples): Misc
tweaks.

18 years ago*** empty log message ***
Kevin Ryde [Sat, 4 Feb 2006 00:56:35 +0000 (00:56 +0000)]
*** empty log message ***

18 years agoUse the equal proc argument, so we exercise the
Kevin Ryde [Sat, 4 Feb 2006 00:54:24 +0000 (00:54 +0000)]
Use the equal proc argument, so we exercise the
srfi-1 version of the code.  Without such an argument srfi-1.c passes
the job to the core scm_delete.

18 years ago(scm_srfi1_delete, scm_srfi1_delete_duplicates): Use a
Kevin Ryde [Sat, 4 Feb 2006 00:50:39 +0000 (00:50 +0000)]
(scm_srfi1_delete, scm_srfi1_delete_duplicates): Use a
count to protect against nasty code in the equality procedure changing
the lists we're working on.  The results don't have to be sensible in
that case, just not hang or access non-cells.

18 years agowrong @subsection in my last
Kevin Ryde [Sat, 4 Feb 2006 00:27:20 +0000 (00:27 +0000)]
wrong @subsection in my last

18 years ago(Compiled Code Installation): New section.
Kevin Ryde [Sat, 4 Feb 2006 00:24:37 +0000 (00:24 +0000)]
(Compiled Code Installation): New section.