bpt/guile.git
15 years agoAdd a statistic for tracking how many cells are marked conservatively.
Han-Wen Nienhuys [Sat, 16 Aug 2008 18:03:48 +0000 (15:03 -0300)]
Add a statistic for tracking how many cells are marked conservatively.

This allows an informed choice for deciding how many segments to
create.  After startup, ~2% of the cells are scanned conservatively.

15 years agoGarbage collection cleanup.
Han-Wen Nienhuys [Sat, 16 Aug 2008 16:57:23 +0000 (13:57 -0300)]
Garbage collection cleanup.

* New file gc-segment-table.c: hold code for the segment table.

* Remove data that might be out of date; remove
  scm_i_adjust_min_yield().  We don't store min_yields, since they
  are only accurate at one point in time (when the sweep finishes).
  We decide the min yield at that point from min_yield_fraction and
  freelist->collected / freelist->swept

* Introduce scm_i_gc_heap_size_delta() replacing
  scm_i_gc_grow_heap_p().

* Remove foo_1 fields containing penultimate results.

* After GC, count mark bit vector to discover number of live
  objects. This simplifies hairy updates.

* Many formatting and layout cleanups.

* Fix in scm_i_sweep_card(): return the length of free_list returned,
  rather than number of deleted objects.

* For mtrigger GCs: do not also run a full sweep after the gc() call, as
  this is inconsistent with lazy sweeping.

* Remove scm_i_make_initial_segment().

* Use calloc in scm_i_make_empty_heap_segment() to save on
  initialization code.

* New function scm_i_sweep_for_freelist() which sweeps, with proper
  statistic variable updates.

* New segments are conceptually blocks with 100% reclaimable cells.

* Remove some useless constants/comments: SCM_HEAP_SIZE,
  SCM_INIT_HEAP_SIZE, SCM_EXPHEAP, SCM_HEAP_SEG_SIZE

* Do not increment scm_cells_allocated() from the
  scm_[double]cell(). This would be a race condition.

* Move some deprecation checks in separate functions to not distract
  from main code flow.

15 years agoRemove comments about removed variables.
Han-Wen Nienhuys [Sat, 16 Aug 2008 16:27:17 +0000 (13:27 -0300)]
Remove comments about removed variables.

15 years agoIntroduce scm_i_marking to detect when GC mark bits are touched
Han-Wen Nienhuys [Sat, 16 Aug 2008 14:57:27 +0000 (11:57 -0300)]
Introduce scm_i_marking to detect when GC mark bits are touched
outside of marking stage.

15 years agoRemove unused macro UNMARKED_CELL_P()
Han-Wen Nienhuys [Sat, 16 Aug 2008 05:58:36 +0000 (02:58 -0300)]
Remove unused macro UNMARKED_CELL_P()

15 years agoUse word_2 to store mark bits for freeing structs and vtables in the
Han-Wen Nienhuys [Sat, 16 Aug 2008 05:58:17 +0000 (02:58 -0300)]
Use word_2 to store mark bits for freeing structs and vtables in the
correct order.

This ensures that we only use GC Marks during the actual GC Mark.

15 years agoDo not include private-gc.h in srfi-60.
Han-Wen Nienhuys [Sat, 16 Aug 2008 15:28:19 +0000 (12:28 -0300)]
Do not include private-gc.h in srfi-60.

15 years agoFix memory corruption issue with hell[] array: realloc/calloc need to
Han-Wen Nienhuys [Sat, 16 Aug 2008 05:18:51 +0000 (02:18 -0300)]
Fix memory corruption issue with hell[] array: realloc/calloc need to
factor in sizeof(scm_t_bits)

15 years agoInclude min-yields in gc-stats output.
Han-Wen Nienhuys [Thu, 14 Aug 2008 05:16:41 +0000 (02:16 -0300)]
Include min-yields in gc-stats output.

15 years agoWhitespace and formatting fixes.
Han-Wen Nienhuys [Thu, 14 Aug 2008 04:51:24 +0000 (01:51 -0300)]
Whitespace and formatting fixes.

Conflicts:

libguile/gc-freelist.c
libguile/gc-segment.c
libguile/gc.h

15 years agoRemove the now useless `qthreads.m4'.
Ludovic Courtès [Wed, 13 Aug 2008 22:15:03 +0000 (00:15 +0200)]
Remove the now useless `qthreads.m4'.

15 years agoFix build failure on Debian hppa architecture (bad stack growth detection)
Neil Jerram [Thu, 7 Aug 2008 21:24:31 +0000 (23:24 +0200)]
Fix build failure on Debian hppa architecture (bad stack growth detection)

* configure.in (SCM_I_GSC_STACK_GROWS_UP): Remove use of
AC_CACHE_CHECK, which was inadvertently causing
SCM_I_GSC_STACK_GROWS_UP _always_ to be 0.

15 years agoFix misleading output from `(help rationalize)'
Neil Jerram [Sat, 2 Aug 2008 23:18:33 +0000 (00:18 +0100)]
Fix misleading output from `(help rationalize)'

* numbers.c (scm_rationalize): Update docstring to match the
manual (which is more correct).  Change argument "err" to "eps",
also to match the manual.

15 years agoSingle stepping through code from Emacs
Neil Jerram [Fri, 11 Jul 2008 16:53:43 +0000 (17:53 +0100)]
Single stepping through code from Emacs

When you use GDS to evaluate Scheme code from Emacs, you can now use
`C-u' to indicate that you want to single step through that code. See
`Evaluating Scheme Code' in the manual for more details.

* scheme-using.texi (Evaluating Scheme Code): Document use of
        `C-u' prefix with evaluation commands.

        * gds-scheme.el (gds-eval-region, gds-eval-expression)
        (gds-eval-defun, gds-eval-last-sexp): Support `C-u' prefix,
        meaning that user wants to single step through the code.

        * gds-client.scm (handle-nondebug-protocol): Add support for
        setting a trap on code that is about to be evaluated.

15 years agoChangeLog for "Improve stack direction test"
Neil Jerram [Thu, 17 Jul 2008 21:03:49 +0000 (22:03 +0100)]
ChangeLog for "Improve stack direction test"

15 years agoChangeLog for "Improved MIPS/Linux gc_os_dep.c definitions"
Neil Jerram [Thu, 17 Jul 2008 21:02:01 +0000 (22:02 +0100)]
ChangeLog for "Improved MIPS/Linux gc_os_dep.c definitions"

15 years agoHandle lack of `struct dirent64' and `readdir64_r ()' on HP-UX 11.11.
Ludovic Courtès [Wed, 16 Jul 2008 22:17:56 +0000 (00:17 +0200)]
Handle lack of `struct dirent64' and `readdir64_r ()' on HP-UX 11.11.

15 years agoImprove stack direction test
Neil Jerram [Fri, 11 Jul 2008 22:30:19 +0000 (23:30 +0100)]
Improve stack direction test

* configure.in: Update stack direction test to be like that in
Autoconf _AC_LIBOBJ_ALLOCA and Gnulib; specifically in involving a
function calling itself.

15 years agoImproved MIPS/Linux gc_os_dep.c definitions
Neil Jerram [Sat, 12 Jul 2008 18:22:59 +0000 (19:22 +0100)]
Improved MIPS/Linux gc_os_dep.c definitions

From Thiemo Seufer <ths@networkno.de>:

* gc_os_dep.c (CPP_WORDSZ, ALIGN_DOUBLE, DATAEND,
DYNAMIC_LOADING): Added #defines.
(_fdata, _end): Added declarations.
(DATASTART): Use _fdata instead of __data_start.
(STACKBOTTOM): Changed from 0x80000000 to 0x7fff8000.

15 years agoUse `-q' when running standalone tests.
Ludovic Courtès [Sun, 6 Jul 2008 21:58:15 +0000 (23:58 +0200)]
Use `-q' when running standalone tests.

15 years agoUpdate `INSTALL'.
Ludovic Courtès [Sun, 6 Jul 2008 17:55:18 +0000 (19:55 +0200)]
Update `INSTALL'.

15 years agoUpdate to Autoconf 2.61.
Ludovic Courtès [Sun, 6 Jul 2008 17:53:49 +0000 (19:53 +0200)]
Update to Autoconf 2.61.

15 years agoUpdate Gnulib files.
Ludovic Courtès [Sat, 5 Jul 2008 18:24:51 +0000 (20:24 +0200)]
Update Gnulib files.

15 years agoAdd `scm_c_symbol_length ()'.
Ludovic Courtès [Sat, 5 Jul 2008 18:10:44 +0000 (20:10 +0200)]
Add `scm_c_symbol_length ()'.

15 years agoDon't declare `scm_i_locale_mutex' as `SCM_INTERNAL'.
Ludovic Courtès [Fri, 4 Jul 2008 20:22:06 +0000 (22:22 +0200)]
Don't declare `scm_i_locale_mutex' as `SCM_INTERNAL'.

15 years agoUpdate `THANKS'.
Ludovic Courtès [Fri, 4 Jul 2008 20:03:08 +0000 (22:03 +0200)]
Update `THANKS'.

15 years agoFix `SCM_INTERNAL' with GCC 4.3.
Ludovic Courtès [Fri, 4 Jul 2008 20:02:56 +0000 (22:02 +0200)]
Fix `SCM_INTERNAL' with GCC 4.3.

15 years agoAdd `NEWS' entry for SRFI-18.
Ludovic Courtès [Mon, 30 Jun 2008 17:48:50 +0000 (19:48 +0200)]
Add `NEWS' entry for SRFI-18.

15 years agosrfi-modules.texi (SRFI-18): New sections.
Julian Graham [Sat, 21 Jun 2008 04:55:17 +0000 (00:55 -0400)]
srfi-modules.texi (SRFI-18): New sections.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
15 years agoModernize Automake files.
Ludovic Courtès [Sat, 28 Jun 2008 20:00:44 +0000 (22:00 +0200)]
Modernize Automake files.

15 years agoFix doc typo regarding `use-syntax' and "syntax transformers".
Ludovic Courtès [Sat, 28 Jun 2008 18:37:21 +0000 (20:37 +0200)]
Fix doc typo regarding `use-syntax' and "syntax transformers".

15 years agoFix harmless typo in SRFI-19.
Ludovic Courtès [Sat, 28 Jun 2008 18:32:17 +0000 (20:32 +0200)]
Fix harmless typo in SRFI-19.

15 years agoDisable type-checking of `SCM_UNPACK' for the broken HP compilers.
Ludovic Courtès [Sat, 28 Jun 2008 18:31:01 +0000 (20:31 +0200)]
Disable type-checking of `SCM_UNPACK' for the broken HP compilers.

16 years agoUpdate `THANKS'.
Ludovic Courtès [Mon, 2 Jun 2008 19:47:53 +0000 (21:47 +0200)]
Update `THANKS'.

16 years agoguile-config: Show `-L$libdir' before `-lguile'.
Ludovic Courtès [Mon, 2 Jun 2008 19:47:41 +0000 (21:47 +0200)]
guile-config: Show `-L$libdir' before `-lguile'.

16 years agoWork around `#define except' on Tru64.
Ludovic Courtès [Mon, 2 Jun 2008 19:43:07 +0000 (21:43 +0200)]
Work around `#define except' on Tru64.

16 years agoSupport systems whose <inttypes.h> doesn't define `PRIiMAX'.
Ludovic Courtès [Mon, 2 Jun 2008 19:34:57 +0000 (21:34 +0200)]
Support systems whose <inttypes.h> doesn't define `PRIiMAX'.

16 years agoFix SRFI-88 URL in the manual.
Ludovic Courtès [Sun, 1 Jun 2008 11:09:36 +0000 (13:09 +0200)]
Fix SRFI-88 URL in the manual.

16 years agoUpdate `NEWS'.
Ludovic Courtès [Sat, 31 May 2008 21:19:55 +0000 (23:19 +0200)]
Update `NEWS'.

16 years agoAdd `SCM_INTERNAL' macro, use it.
Ludovic Courtès [Wed, 14 May 2008 03:20:47 +0000 (05:20 +0200)]
Add `SCM_INTERNAL' macro, use it.

16 years agoScheme SRFI-18 implementation and tests file
Julian Graham [Thu, 15 May 2008 04:50:50 +0000 (00:50 -0400)]
Scheme SRFI-18 implementation and tests file

16 years agoDelete trailing whitespace.
Neil Jerram [Wed, 14 May 2008 23:00:57 +0000 (00:00 +0100)]
Delete trailing whitespace.

16 years agoChangeLog updates for latest set of SRFI-18 changes
Julian Graham [Mon, 14 Apr 2008 00:31:18 +0000 (20:31 -0400)]
ChangeLog updates for latest set of SRFI-18 changes

16 years agoDelete trailing whitespace.
Neil Jerram [Wed, 14 May 2008 22:52:49 +0000 (23:52 +0100)]
Delete trailing whitespace.

16 years agolatest set of SRFI-18 support changes to core threads
Julian Graham [Sun, 13 Apr 2008 23:51:23 +0000 (19:51 -0400)]
latest set of SRFI-18 support changes to core threads

16 years agoExpand DEFFROM and DEFTO macros in discouraged.c
Neil Jerram [Mon, 12 May 2008 23:00:34 +0000 (00:00 +0100)]
Expand DEFFROM and DEFTO macros in discouraged.c

* discouraged.c: Expand DEFFROM and DEFTO macros, to avoid
compiler warnings about excess semicolons.  (Reported by Didier
Godefroy.)

16 years agoFix continuation problems on IA64.
Neil Jerram [Wed, 7 May 2008 23:29:53 +0000 (00:29 +0100)]
Fix continuation problems on IA64.

* Specific problems in IA64 make check

** test-unwind

Representation of the relevant dynamic context:

                  non-rewindable
           catch      frame       make cont.
  o----o-----a----------b-------------c
        \
         \             call cont.
          o-----o-----------d

A continuation is captured at (c), with a non-rewindable frame in the
dynamic context at (b).  If a rewind through that frame was attempted,
Guile would throw to the catch at (a).  Then the context unwinds back
past (a), then winds forwards again, and the captured continuation is
called at (d).

We should end up at the catch at (a).  On ia64, we get an "illegal
instruction".

The problem is that Guile does not restore the ia64 register backing
store (RBS) stack (which is saved off when the continuation is
captured) until all the unwinding and rewinding is done.  Therefore,
when the rewind code (scm_i_dowinds) hits the non-rewindable frame at
(b), the RBS stack hasn't yet been restored.  The throw finds the
jmp_buf (for the catch at (a)) correctly from the dynamic context, and
jumps back to (a), but the RBS stack is invalid, hence the illegal
instruction.

This could be fixed by restoring the RBS stack earlier, at the same
point (copy_stack) where the normal stack is restored.  But that
causes a problem in the next test...

** continuations.test

The dynamic context diagram for this case is similar:

                   non-rewindable
  catch                 frame       make cont.
    a----x-----o----------b-------------c
          \
           \    call cont.
            o-------d

The only significant difference is that the catch point (a) is
upstream of where the dynamic context forks.  This means that the RBS
stack at (d) already contains the correct RBS contents for throwing
back to (a), so it doesn't matter whether the RBS stack that was saved
off with the continuation gets restored.

This test passes with the Guile 1.8.4 code, but fails (with an
"illegal instruction") when the code is changed to restore the RBS
stack earlier as described above.

The problem now is that the RBS stack is being restored _too_ early;
specifically when there is still stuff to do that relies on the old
RBS contents.  When a continuation is called, the sequence of relevant
events is:

  (1) Grow the (normal) stack until it is bigger than the (normal)
      stack saved off in the continuation.  (scm_dynthrow, grow_stack)

  (2) scm_i_dowinds calls itself recursively, such that

      (2.1) for each rewind (from (x) to (c)) that will be needed,
            another frame is added to the stack (both normal and RBS),
            with local variables specifying the required rewind; the
            rewinds don't actually happen yet, they will happen when
            the stack unwinds again through these frames

      (2.2) required unwinds - back from where the continuation was
            called (d) to the fork point (x) - are done immediately.

  (3) The normal (i.e. non-RBS) stack that was stored in the
      continuation is restored (i.e. copied on top of the actual
      stack).

      Note that this doesn't overwrite the frames that were added in
      (2.1), because the growth in (1) ensures that the added frames
      are beyond the end of the restored stack.

  (4) ? Restore the RBS stack here too ?

  (5) Return (from copy_stack) through the (2.1) frames, which means
      that the rewinds now happen.

  (6) setcontext (or longjmp) to the context (c) where the
      continuation was captured.

The trouble is that step (1) does not create space in the RBS stack in
the same kind of way that it does for the normal stack.  Therefore, if
the saved (in the continuation) RBS stack is big enough, it can
overwrite the RBS of the (2.1) frames that still need to complete.
This causes an illegal instruction when we return through those frames
and try to perform the rewinds.

* Fix

The key to the fix is that the saved RBS stack only needs to be
restored at some point before the next setcontext call, and that doing
it as close to the setcontext call as possible will avoid bad
interactions with the pre-setcontext stack.  Therefore we do the
restoration at the last possible point, immediately before the next
setcontext call.

The situation is complicated by there being two ways that the next
setcontext call can happen.

  - If the unwinding and rewinding is all successful, the next
    setcontext will be the one from step (6) above.  This is the
    "normal" continuation invocation case.

  - If one of the rewinds throws an error, the next setcontext will
    come from the throw implementation code.  (And the one in step (6)
    will never happen.)  This is the rewind error case.

In the rewind error case, the code calling setcontext knows nothing
about the continuation.  So to cover both cases, we:

  - copy (in step (4) above) the address and length of the
    continuation's saved RBS stack to the current thread state
    (SCM_I_CURRENT_THREAD)

  - modify all setcontext callers so that they check the current
    thread state for a saved RBS stack, and restore it if so before
    calling setcontext.

* Notes

** I think rewinders cannot rely on using any stack data

Unless it can be guaranteed that the data won't go into a register.
I'm not 100% sure about this, but I think it follows from the fact
that the RBS stack is not restored until after the rewinds have
happened.

Note that this isn't a regression caused by the current fix.  In Guile
1.8.4, the RBS stack was restored _after_ the rewinds, and this is
still the case now.

** Most setcontext calls for `throw' don't need to change the RBS stack

In the absence of continuation invocation, the setcontext call in the
throw implementation code always sets context to a place higher up the
same stack (both normal and RBS), hence no stack restoration is
needed.

* Other changes

** Using setcontext for all non-local jumps (for __ia64__)

Along the way, I read a claim somewhere that setcontext was more
reliable than longjmp, in cases where the stack has been manipulated.

I don't now have any reason to believe this, but it seems reasonable
anyway to leave the __ia64__ code using getcontext/setcontext, instead
of setjmp/longjmp.

(I think the only possible argument against this would be performance -
if getcontext was significantly slower than setjmp.  It that proves to
be the case, we should revisit this.)

** Capping RBS base for non-main threads

Somewhere else along the way, I hit a problem in GC, involving the RBS
stack of a non-main thread.  The problem was, in
SCM_MARK_BACKING_STORE, that scm_ia64_register_backing_store_base was
returning a value that was massively greater than the value of
scm_ia64_ar_bsp, leading to a seg fault.  This is because the
implementation of scm_ia64_register_backing_store_base is only valid
for the main thread.  I couldn't find a neat way of getting the true
RBS base of a non-main thread, but one idea is simply to call
scm_ia64_ar_bsp when guilifying a thread, and use the value returned
as an upper bound for that thread's RBS base.  (Note that the RBS
stack grows upwards.)

(Were it not for scm_init_guile, we could be much more definitive
about this.  We could take the value of scm_ia64_ar_bsp as a
definitive base address for the part of the RBS stack that Guile cares
about.  We could also then discard
scm_ia64_register_backing_store_base.)

16 years agoMerge changes for 1.8.5.
Ludovic Courtès [Wed, 7 May 2008 18:52:59 +0000 (20:52 +0200)]
Merge changes for 1.8.5.

16 years agoRemove uses of non-portable makefile constructs.
Ludovic Courtès [Wed, 7 May 2008 17:57:40 +0000 (19:57 +0200)]
Remove uses of non-portable makefile constructs.

16 years agoAvoid warning with GCC on FreeBSD 6.2 in `numbers.c'.
Ludovic Courtès [Wed, 7 May 2008 15:43:17 +0000 (17:43 +0200)]
Avoid warning with GCC on FreeBSD 6.2 in `numbers.c'.

16 years agoFix c-tokenize.c error: 'input' defined but not used, when compiling with GCC 4.3.0
Neil Jerram [Mon, 5 May 2008 22:47:24 +0000 (23:47 +0100)]
Fix c-tokenize.c error: 'input' defined but not used, when compiling with GCC 4.3.0

16 years agoAdd NEWS and concept index entries for traps infrastructure and Emacs support.
Neil Jerram [Mon, 5 May 2008 21:31:07 +0000 (22:31 +0100)]
Add NEWS and concept index entries for traps infrastructure and Emacs support.

16 years agoFix omissions and typos in previous commit.
Ludovic Courtès [Sun, 4 May 2008 20:42:13 +0000 (22:42 +0200)]
Fix omissions and typos in previous commit.

16 years agoAdd `pkg-config' support.
Ludovic Courtès [Sun, 4 May 2008 20:19:30 +0000 (22:19 +0200)]
Add `pkg-config' support.

16 years agoFix type-checking of SRFI-1 `partition'.
Ludovic Courtès [Mon, 28 Apr 2008 16:03:27 +0000 (18:03 +0200)]
Fix type-checking of SRFI-1 `partition'.

16 years agoInclude <config.h> in SRFI-1.
Ludovic Courtès [Sat, 26 Apr 2008 22:50:05 +0000 (00:50 +0200)]
Include <config.h> in SRFI-1.

16 years agoOnly run `test-with-guile-module' when pthread support is built.
Ludovic Courtès [Sat, 26 Apr 2008 19:55:29 +0000 (21:55 +0200)]
Only run `test-with-guile-module' when pthread support is built.

16 years agoRemove extraneous semi-colon in `read.c'.
Ludovic Courtès [Sat, 26 Apr 2008 19:39:27 +0000 (21:39 +0200)]
Remove extraneous semi-colon in `read.c'.

16 years agoMake `(srfi srfi-35)' visible through `cond-expand'.
Ludovic Courtès [Sat, 26 Apr 2008 19:09:40 +0000 (21:09 +0200)]
Make `(srfi srfi-35)' visible through `cond-expand'.

16 years agoAdd `(srfi srfi-88)'.
Ludovic Courtès [Sat, 26 Apr 2008 17:34:37 +0000 (19:34 +0200)]
Add `(srfi srfi-88)'.

16 years agoFix dangling references to files that have been removed.
Ludovic Courtès [Sat, 26 Apr 2008 17:27:55 +0000 (19:27 +0200)]
Fix dangling references to files that have been removed.

16 years agoDon't use "-I$(srcdir)", so that our "random.h" doesn't shadow libc's on Tru64.
Ludovic Courtès [Thu, 24 Apr 2008 17:25:30 +0000 (19:25 +0200)]
Don't use "-I$(srcdir)", so that our "random.h" doesn't shadow libc's on Tru64.

16 years agoDocument file-exists?
Neil Jerram [Thu, 17 Apr 2008 20:36:20 +0000 (21:36 +0100)]
Document file-exists?

16 years agoAdd `read' benchmark.
Ludovic Courtès [Thu, 17 Apr 2008 08:04:09 +0000 (10:04 +0200)]
Add `read' benchmark.

16 years agoUpdate `NEWS'.
Ludovic Courtès [Wed, 16 Apr 2008 10:00:49 +0000 (12:00 +0200)]
Update `NEWS'.

16 years agoInline `scm_getc', `scm_putc' and `scm_puts'.
Ludovic Courtès [Mon, 14 Apr 2008 16:09:49 +0000 (18:09 +0200)]
Inline `scm_getc', `scm_putc' and `scm_puts'.

16 years agoMerge branch 'master' of ssh://civodul@git.sv.gnu.org/srv/git/guile
Ludovic Courtès [Wed, 16 Apr 2008 07:06:02 +0000 (09:06 +0200)]
Merge branch 'master' of ssh://civodul@git.sv.gnu.org/srv/git/guile

16 years agoDon't use "echo -n" in `guile-readline/configure.in'.
Ludovic Courtès [Wed, 16 Apr 2008 07:01:33 +0000 (09:01 +0200)]
Don't use "echo -n" in `guile-readline/configure.in'.

16 years agoAdd TAGS to .gitignore
Neil Jerram [Tue, 15 Apr 2008 22:52:58 +0000 (23:52 +0100)]
Add TAGS to .gitignore

16 years agoA few elisp fixes and enhancements
Neil Jerram [Mon, 14 Apr 2008 20:25:17 +0000 (21:25 +0100)]
A few elisp fixes and enhancements

16 years ago* gds-client.scm (gds-debug-trap): Ensure that frame index passed to Emacs is always...
Neil Jerram [Mon, 14 Apr 2008 18:40:02 +0000 (19:40 +0100)]
* gds-client.scm (gds-debug-trap): Ensure that frame index passed to Emacs is always positive.

16 years agoRevert "Fix typo in `read.c'."
Ludovic Courtès [Tue, 15 Apr 2008 18:14:44 +0000 (20:14 +0200)]
Revert "Fix typo in `read.c'."

This reverts commit 6ddb3ca825b1ee8b746eb688e98aa3b37ab55c3e.

16 years agoFix typo in `read.c'.
Ludovic Courtès [Tue, 15 Apr 2008 18:01:13 +0000 (20:01 +0200)]
Fix typo in `read.c'.

16 years agoAdd support for SRFI-88-like postfix keyword read syntax.
Ludovic Courtès [Tue, 15 Apr 2008 17:52:43 +0000 (19:52 +0200)]
Add support for SRFI-88-like postfix keyword read syntax.

16 years agoTest the interaction of GOOPS objects with `struct-{ref,set!}'.
Ludovic Courtès [Sun, 13 Apr 2008 18:41:23 +0000 (20:41 +0200)]
Test the interaction of GOOPS objects with `struct-{ref,set!}'.

16 years agoSlightly simplify inline machinery.
Ludovic Courtès [Sun, 13 Apr 2008 17:38:42 +0000 (19:38 +0200)]
Slightly simplify inline machinery.

16 years agoReally fix inline machinery for MacOS X.
Ludovic Courtès [Sun, 13 Apr 2008 17:35:46 +0000 (19:35 +0200)]
Really fix inline machinery for MacOS X.

16 years agoFix inline machinery in C99 mode on MacOS X.
Ludovic Courtès [Thu, 10 Apr 2008 21:57:05 +0000 (23:57 +0200)]
Fix inline machinery in C99 mode on MacOS X.

16 years agoAdd `NEWS' entries for Andy's fixes.
Ludovic Courtès [Thu, 10 Apr 2008 21:20:20 +0000 (23:20 +0200)]
Add `NEWS' entries for Andy's fixes.

16 years agofix struct-ref and struct-set! on "light" structs
Andy Wingo [Wed, 9 Apr 2008 23:32:14 +0000 (01:32 +0200)]
fix struct-ref and struct-set! on "light" structs

* libguile/struct.c (scm_struct_ref, scm_struct_set_x): "Light" structs
have no hidden words (members of the SCM_STRUCT_DATA(x) array accessed
with negative indices). In that case, determine the number of fields
from the length of the struct layout descriptor. (Most GOOPS instances
are light structs.)

16 years agoinitialize 'u' slots to 0, not SCM_UNPACK(SCM_GOOPS_UNBOUND)
Andy Wingo [Wed, 9 Apr 2008 23:27:19 +0000 (01:27 +0200)]
initialize 'u' slots to 0, not SCM_UNPACK(SCM_GOOPS_UNBOUND)

* goops.c (wrap_init): Initialize 'u' slots to 0, not some random
SCM value.

16 years agorespect slot allocation, e.g. for <read-only-slot>
Andy Wingo [Wed, 9 Apr 2008 23:23:06 +0000 (01:23 +0200)]
respect slot allocation, e.g. for <read-only-slot>

* libguile/goops.c (get_slot_value, set_slot_value): In the struct
allocation case, don't poke the slots array directly -- we should
go through struct-ref/struct-set! code so that we get the
permissions and allocation ('u' versus 'p') correct.

16 years agoFix manual typo.
Neil Jerram [Fri, 28 Mar 2008 22:56:24 +0000 (22:56 +0000)]
Fix manual typo.

16 years agoUpdate/remove references to the CVS repository.
Ludovic Courtès [Thu, 27 Mar 2008 20:50:06 +0000 (21:50 +0100)]
Update/remove references to the CVS repository.

16 years agoFix "#include" directives in stand-alone C tests.
Ludovic Courtès [Sun, 6 Apr 2008 16:41:07 +0000 (18:41 +0200)]
Fix "#include" directives in stand-alone C tests.

16 years agoFix inline machinery for GCC 4.3 and later in C99 mode.
Ludovic Courtès [Thu, 3 Apr 2008 15:28:42 +0000 (17:28 +0200)]
Fix inline machinery for GCC 4.3 and later in C99 mode.

16 years agoMore `.gitignore'.
Ludovic Courtès [Mon, 7 Apr 2008 21:55:58 +0000 (23:55 +0200)]
More `.gitignore'.

16 years agoMore `.gitignore'.
Ludovic Courtès [Mon, 7 Apr 2008 21:48:08 +0000 (23:48 +0200)]
More `.gitignore'.

16 years ago(to_timespec): Change 1000000 multiplier to
Neil Jerram [Mon, 24 Mar 2008 21:51:09 +0000 (21:51 +0000)]
(to_timespec): Change 1000000 multiplier to
1000000000.
(unchecked_unlock_sym, allow_external_unlock_sym,
recursive_sym): Use SCM_SYMBOL.
(scm_make_mutex_with_flags): When raising unsupported option
error, report what the unsupported option was.
(fat_mutex_unlock): When raising errors, unlock m->lock first.
(fat_cond_timedwait): Removed.
(scm_timed_wait_condition_variable): Call fat_mutex_unlock
directly instead of via fat_cond_timedwait.

16 years ago(Mutexes and Condition Variables): Change
Neil Jerram [Mon, 24 Mar 2008 21:50:51 +0000 (21:50 +0000)]
(Mutexes and Condition Variables): Change
`flag' to `flags' in docstring.

16 years ago(command-loop): Use
Neil Jerram [Wed, 19 Mar 2008 22:56:17 +0000 (22:56 +0000)]
(command-loop): Use
needed modules.

16 years ago* api-debug.texi (Low Level Trap Calls): Removed (material
Neil Jerram [Wed, 19 Mar 2008 22:51:24 +0000 (22:51 +0000)]
* api-debug.texi (Low Level Trap Calls): Removed (material
duplicated elsewhere); doc for with-traps and debug-object? moved
to section on evaluator trap options.
(High Level Traps): Renamed just `Traps'.  Add references to
evaluator trap options and debug options.  Make language
appropriate for core Guile (as opposed to previously separate
package).
(Location Traps): Corrected to reflect that location traps now
specify a specific position, not a range of positions.
(Debugging Examples): New (content moved here from
scheme-debugging.texi, and updated to use traps instead of
breakpoints).

* api-modules.texi (Included Guile Modules): Change `Debugging
Features' reference to `Tracing'.

* api-options.texi (Evaluator trap options): Doc for with-traps
and debug-object? is now here.

* guile.texi, scheme-debugging.texi: Move the `Tracing' content of
scheme-debugging.texi to the Modules section.

* scheme-using.texi (Using Guile in Emacs, GDS Getting Started):
Minor edits.

* scheme-debugging.texi (Debugging Features, Intro to
Breakpoints): Removed.
(Examples): Moved to api-debug.texi.
(Tracing, Old Tracing): Promoted one level.
(New Tracing, Tracing Compared): Removed.

16 years agoUse SRFI-1 in `(oop goops util)'.
Ludovic Courtès [Tue, 18 Mar 2008 09:10:45 +0000 (09:10 +0000)]
Use SRFI-1 in `(oop goops util)'.

16 years agoHonor $TMPDIR in the test suite.
Ludovic Courtès [Thu, 13 Mar 2008 14:03:58 +0000 (14:03 +0000)]
Honor $TMPDIR in the test suite.

16 years agoFix SRFI-37 `args-fold' with short option names of argument-less options.
Ludovic Courtès [Wed, 12 Mar 2008 17:01:19 +0000 (17:01 +0000)]
Fix SRFI-37 `args-fold' with short option names of argument-less options.

16 years agoProvide `describe' feature in `(oop goops describe)'.
Ludovic Courtès [Wed, 12 Mar 2008 17:00:07 +0000 (17:00 +0000)]
Provide `describe' feature in `(oop goops describe)'.

16 years agoFix `alloca' on FreeBSD 6.
Ludovic Courtès [Mon, 10 Mar 2008 22:34:40 +0000 (22:34 +0000)]
Fix `alloca' on FreeBSD 6.

16 years agoOnly define scm_from_complex_double if it will
Neil Jerram [Sun, 9 Mar 2008 21:57:00 +0000 (21:57 +0000)]
Only define scm_from_complex_double if it will
actually be used.

16 years agoCore enhancements, by Julian Graham, to Guile's thread, mutex and
Neil Jerram [Sat, 8 Mar 2008 16:22:40 +0000 (16:22 +0000)]
Core enhancements, by Julian Graham, to Guile's thread, mutex and
condvar primitives, in preparation for SRFI-18 support.

16 years agoFix type-checking for the second argument of `eval'.
Ludovic Courtès [Thu, 6 Mar 2008 09:51:44 +0000 (09:51 +0000)]
Fix type-checking for the second argument of `eval'.