pthread.h: typo in #define
pthread_cleanup_push/pthread_cleanup_pop
pluknet
pluknet at gmail.com
Tue Nov 24 15:14:01 UTC 2009
2009/11/24 Mikolaj Golub <to.my.trociny at gmail.com>:
> Hi,
>
> I have problems with compiling our application under 8.0.
>
> It fails due to these definitions in pthread.h that look like a typo or
> incorrectly applied patch:
>
> 170 #define pthread_cleanup_push(cleanup_routine, cleanup_arg) \
> 171 { \
> 172 struct _pthread_cleanup_info __cleanup_info__; \
> 173 __pthread_cleanup_push_imp(cleanup_routine, cleanup_arg,\
> 174 &__cleanup_info__); \
> 175 {
> 176
> 177 #define pthread_cleanup_pop(execute) \
> 178 } \
> 179 __pthread_cleanup_pop_imp(execute); \
> 180 }
>
Hi.
No, this is made intentionally.
P.S. I don't understand the reason in the second brackets pair though
(lines 175,178),
maybe these are because of comment to v1.43..
--
wbr,
pluknet
More information about the freebsd-stable
mailing list