diff options
author | Roland McGrath <roland@gnu.org> | 2001-03-31 23:01:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-03-31 23:01:01 +0000 |
commit | 518b6666a022023916d55c98fc602481e5290781 (patch) | |
tree | 47c95c841a8a65b8528d1b4f36e4693f0e8659a6 /libthreads/cthreads.h | |
parent | 50d29b8c6df6ab62be6a029175b6fa0f251ed305 (diff) |
2001-03-31 Roland McGrath <roland@frob.com>
* cthreads.h: Fix obsolescent #endif syntax.
* cthread_internals.h: Likewise.
* cancel-cond.c: Likewise.
* stack.c: Likewise.
* cthreads.c: Likewise.
* cprocs.c: Likewise.
* call.c: Likewise.
Diffstat (limited to 'libthreads/cthreads.h')
-rw-r--r-- | libthreads/cthreads.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/libthreads/cthreads.h b/libthreads/cthreads.h index c15e0377..787827aa 100644 --- a/libthreads/cthreads.h +++ b/libthreads/cthreads.h @@ -26,6 +26,12 @@ /* * HISTORY * $Log: cthreads.h,v $ + * Revision 1.15 1999/06/13 18:54:42 roland + * 1999-06-13 Roland McGrath <roland@baalperazim.frob.com> + * + * * cthreads.h (MACRO_BEGIN, MACRO_END): #undef before unconditionally + * redefining. Use GCC extension for statement expression with value 0. + * * Revision 1.14 1999/05/30 01:39:48 roland * 1999-05-29 Roland McGrath <roland@baalperazim.frob.com> * @@ -487,7 +493,7 @@ typedef struct cthread { char *name; #ifdef CTHREAD_DATA any_t data; -#endif CTHREAD_DATA +#endif /* CTHREAD_DATA */ any_t private_data; struct ur_cthread *ur; } *cthread_t; @@ -527,11 +533,11 @@ extern int cthread_stack_mask; #ifdef STACK_GROWTH_UP #define ur_cthread_ptr(sp) \ (* (ur_cthread_t *) ((sp) & cthread_stack_mask)) -#else STACK_GROWTH_UP +#else /* STACK_GROWTH_UP */ #define ur_cthread_ptr(sp) \ (* (ur_cthread_t *) ( ((sp) | cthread_stack_mask) + 1 \ - sizeof(ur_cthread_t *)) ) -#endif STACK_GROWTH_UP +#endif /* STACK_GROWTH_UP */ #define ur_cthread_self() (ur_cthread_ptr(cthread_sp())) @@ -569,7 +575,7 @@ cthread_set_data C_ARG_DECLS((cthread_t t, any_t x)); extern any_t cthread_data C_ARG_DECLS((cthread_t t)); -#endif CTHREAD_DATA +#endif /* CTHREAD_DATA */ /* * Support for POSIX thread specific data @@ -622,18 +628,18 @@ cthread_setspecific C_ARG_DECLS((cthread_key_t key, any_t value)); } \ MACRO_END -#endif ASSERT +#endif /* ASSERT */ #define SHOULDNT_HAPPEN 0 extern int cthread_debug; -#else DEBUG +#else /* DEBUG */ #ifndef ASSERT #define ASSERT(p) -#endif ASSERT +#endif /* ASSERT */ -#endif DEBUG +#endif /* DEBUG */ -#endif _CTHREADS_ +#endif /* _CTHREADS_ */ |