diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 20:48:05 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 20:48:05 +0000 |
commit | 0c95b57d77efbe82bb0ade78df5d78d6d0f2a641 (patch) | |
tree | 4cd49dc6b94effdaed1476f397dc7c82d371b008 /libguile/mit-pthreads.c | |
parent | 9c24ff3e6c28e7b9adc6b386ea0033e8a947c40e (diff) | |
download | guile-0c95b57d77efbe82bb0ade78df5d78d6d0f2a641.tar.gz |
* coop-threads.c: Remove K&R function headers.
* scm_validate.h: Added SCM_VALIDATE_THREAD.
* *.c: Remove SCM_NIMP(X) when it is an extraneous pre-test given
that SCM_FOOP macros all now include SCM_NIMP in their expansion.
This simplifies lots of code, making it far more readable.
Diffstat (limited to 'libguile/mit-pthreads.c')
-rw-r--r-- | libguile/mit-pthreads.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libguile/mit-pthreads.c b/libguile/mit-pthreads.c index 7fb787a2e..a365561e5 100644 --- a/libguile/mit-pthreads.c +++ b/libguile/mit-pthreads.c @@ -419,7 +419,7 @@ scm_lock_mutex (m) SCM m; #endif { - SCM_ASSERT (SCM_NIMP (m) && SCM_MUTEXP (m), m, SCM_ARG1, s_lock_mutex); + SCM_ASSERT (SCM_MUTEXP (m), m, SCM_ARG1, s_lock_mutex); pthread_mutex_lock (SCM_MUTEX_DATA (m)); return SCM_BOOL_T; } @@ -433,7 +433,7 @@ scm_unlock_mutex (m) SCM m; #endif { - SCM_ASSERT (SCM_NIMP (m) && SCM_MUTEXP (m), m, SCM_ARG1, s_unlock_mutex); + SCM_ASSERT (SCM_MUTEXP (m), m, SCM_ARG1, s_unlock_mutex); pthread_mutex_unlock (SCM_MUTEX_DATA (m)); return SCM_BOOL_T; } @@ -463,11 +463,11 @@ scm_wait_condition_variable (c, m) SCM m; #endif { - SCM_ASSERT (SCM_NIMP (c) && SCM_CONDVARP (c), + SCM_ASSERT (SCM_CONDVARP (c), c, SCM_ARG1, s_wait_condition_variable); - SCM_ASSERT (SCM_NIMP (m) && SCM_MUTEXP (m), + SCM_ASSERT (SCM_MUTEXP (m), m, SCM_ARG2, s_wait_condition_variable); @@ -484,7 +484,7 @@ scm_signal_condition_variable (c) SCM c; #endif { - SCM_ASSERT (SCM_NIMP (c) && SCM_CONDVARP (c), + SCM_ASSERT (SCM_CONDVARP (c), c, SCM_ARG1, s_signal_condition_variable); |