Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2009 18:13:59 +0300
From:      pluknet <pluknet@gmail.com>
To:        Mikolaj Golub <to.my.trociny@gmail.com>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop
Message-ID:  <a31046fc0911240713j19ac52dkb53124af0795fd8b@mail.gmail.com>
In-Reply-To: <86aayc7z4g.fsf@zhuzha.ua1>
References:  <86aayc7z4g.fsf@zhuzha.ua1>

next in thread | previous in thread | raw e-mail | index | archive | help

2009/11/24 Mikolaj Golub <to.my.trociny@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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0911240713j19ac52dkb53124af0795fd8b>