diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-03 20:42:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-03 20:42:28 +0000 |
commit | 620dd06d155ec900ab9db3a8611e128571f4c9cb (patch) | |
tree | 7acc6f99ae69ac5b3f85a0682c734812911b7d66 /winsup/cygwin/include/pthread.h | |
parent | 13c45b304c286502bfe5cc2d128744447cef7325 (diff) | |
download | newlib-620dd06d155ec900ab9db3a8611e128571f4c9cb.zip newlib-620dd06d155ec900ab9db3a8611e128571f4c9cb.tar.gz newlib-620dd06d155ec900ab9db3a8611e128571f4c9cb.tar.bz2 |
* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
arguments.
(pthread_cleanup_pop): Ditto.
Diffstat (limited to 'winsup/cygwin/include/pthread.h')
-rw-r--r-- | winsup/cygwin/include/pthread.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index 6f8f902..4b03bbb 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -1,6 +1,6 @@ /* pthread.h: POSIX pthread interface - Copyright 1996, 1997, 1998 Cygnus Solutions. + Copyright 1996, 1997, 1998, 1999, 20000, 2001 Red Hat, Inc. Written by Marco Fuykschot <marco@ddi.nl> @@ -98,14 +98,14 @@ int pthread_attr_setstacksize (pthread_attr_t *, size_t); int pthread_cancel (pthread_t); /* Macros for cleanup_push and pop; * The function definitions are -void pthread_cleanup_push(void (*routine)(void*), void *arg); -void pthread_cleanup_pop(int execute); +void pthread_cleanup_push (void (*routine)(void*), void *arg); +void pthread_cleanup_pop (int execute); */ typedef void __cleanup_routine_type (void *); -#define pthread_cleanup_push (fn, arg) { __cleanup_routine_type __cleanup_routine=fn; \ +#define pthread_cleanup_push(fn, arg) { __cleanup_routine_type __cleanup_routine=fn; \ void *__cleanup_param=arg; -#define pthread_cleanup_pop (execute) if (execute) __cleanup_routine(__cleanup_param); } +#define pthread_cleanup_pop(execute) if (execute) __cleanup_routine(__cleanup_param); } /* Condition variables */ int pthread_cond_broadcast (pthread_cond_t *); @@ -169,7 +169,6 @@ void pthread_testcancel (void); int pthread_suspend (pthread_t); int pthread_continue (pthread_t); - #ifdef __cplusplus } #endif |