Update the thread stack base when `scm_with_guile' is invoked multiple times.
authorLudovic Courtès <ludo@gnu.org>
Thu, 13 Nov 2008 23:35:32 +0000 (00:35 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 13 Nov 2008 23:36:58 +0000 (00:36 +0100)
commitccf1ca4adfd43cbc814c7b437a0f9d78c7787e1a
treeed9fbd718c8c314ab58fdcb51a7e9d550e1ce012
parent38c1da430cf0b83c1dcd09bb99fd5f3fc0ea830a
Update the thread stack base when `scm_with_guile' is invoked multiple times.

* NEWS: Update.

* libguile/threads.c (scm_i_init_thread_for_guile): When the thread is
  already guilified, update `t->base' so that it corresponds to the new
  stack base.  Bug report and patch by Linas Vepstas <linasvepstas@gmail.com>.

* test-suite/standalone/Makefile.am (test_scm_with_guile_CFLAGS,
  test_scm_with_guile_LDADD): New.
  (check_PROGRAMS, TESTS): Add `test-scm-with-guile'.
NEWS
libguile/threads.c
test-suite/standalone/.gitignore
test-suite/standalone/Makefile.am
test-suite/standalone/test-scm-with-guile.c [new file with mode: 0644]