From d028af45bf1de59cb02b5eca18937383570f775d Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Thu, 27 Mar 2003 20:10:13 +0000 Subject: [PATCH] * threads.c: fix various preprocessor usages of new public symbols to expect 0 or 1 values rather than 1 or undefined. i.e. change #ifdef to #if, etc. * null-threads.c: fix various preprocessor usages of new public symbols to expect 0 or 1 values rather than 1 or undefined. i.e. change #ifdef to #if, etc. * coop-threads.c: fix various preprocessor usages of new public symbols to expect 0 or 1 values rather than 1 or undefined. i.e. change #ifdef to #if, etc. * coop-pthreads.c: fix various preprocessor usages of new public symbols to expect 0 or 1 values rather than 1 or undefined. i.e. change #ifdef to #if, etc. --- libguile/threads.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libguile/threads.c b/libguile/threads.c index aeb0262c9..94a747853 100644 --- a/libguile/threads.c +++ b/libguile/threads.c @@ -975,7 +975,7 @@ scm_threads_mark_stacks (void) /* Active thread */ /* stack_len is long rather than sizet in order to guarantee that &stack_len is long aligned */ -#ifdef SCM_STACK_GROWS_UP +#if SCM_STACK_GROWS_UP stack_len = ((SCM_STACKITEM *) (&t) - (SCM_STACKITEM *) thread->base); @@ -1022,7 +1022,7 @@ scm_threads_mark_stacks (void) else { /* Suspended thread */ -#ifdef SCM_STACK_GROWS_UP +#if SCM_STACK_GROWS_UP long stack_len = t->top - t->base; scm_mark_locations (t->base, stack_len); #else @@ -1261,8 +1261,8 @@ scm_i_thread_sleep_for_gc () scm_t_mutex scm_i_critical_section_mutex; scm_t_rec_mutex scm_i_defer_mutex; -#ifdef SCM_USE_PTHREAD_THREADS -#include "libguile/pthread-threads.c" +#if SCM_USE_PTHREAD_THREADS +# include "libguile/pthread-threads.c" #endif #include "libguile/threads-plugin.c" @@ -1272,7 +1272,7 @@ void scm_threads_prehistory () { scm_thread *t; -#ifdef SCM_USE_PTHREAD_THREADS +#if SCM_USE_PTHREAD_THREADS /* Must be called before any initialization of a mutex. */ scm_init_pthread_threads (); #endif