diff options
author | Mark H Weaver <mhw@netris.org> | 2011-05-22 15:23:27 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2011-05-22 15:45:28 -0400 |
commit | 9ec1573d2b9463043df79b9a2cb30acc6afaeaaa (patch) | |
tree | 541bb9e4ba63b47bf502efe234a38769a47f1082 /doc/ref/api-debug.texi | |
parent | a1a3a0dd5d8cb03ea16c604b2e82038474315bea (diff) | |
download | guile-9ec1573d2b9463043df79b9a2cb30acc6afaeaaa.tar.gz |
Don't call scm_lock_mutex and scm_unlock_mutex via pointer of wrong type
* libguile/threads.c (lock_mutex_return_void, unlock_mutex_return_void):
New static functions that simply call scm_lock_mutex and
scm_unlock_mutex, respectively, but return void instead of SCM.
(scm_dynwind_lock_mutex): Pass unlock_mutex_return_void to
scm_dynwind_unwind_handler_with_scm, and lock_mutex_return_void to
scm_dynwind_rewind_handler_with_scm. Previously, we passed
scm_unlock_mutex and scm_lock_mutex (which return SCM), but the
scm_dynwind_* functions expect pointers to functions which return
void. When SCM is of type union, this changes the calling conventions
of the functions on some platforms (e.g. GCC 4.5.2 and 4.5.3 on x86).
Diffstat (limited to 'doc/ref/api-debug.texi')
0 files changed, 0 insertions, 0 deletions