delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Gerrit P. Haase" <gerrit DOT haase AT t-online DOT de> |
Organization: | Esse keine toten Tiere |
To: | cygwin AT cygwin DOT com |
Date: | Thu, 17 May 2001 21:22:31 +0200 |
MIME-Version: | 1.0 |
Subject: | pthread.h |
Reply-to: | gerrit DOT haase AT t-online DOT de |
Message-ID: | <3B044117.19260.A47AA97@localhost> |
X-mailer: | Pegasus Mail for Win32 (v3.12cDE) |
X-Hops: | 1 |
X-Sender: | 320081107336-0001 AT t-dialin DOT net |
Hallo, maybe someone is able to explain this part of pthread.h to me? Line 99: ======== /* 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); */ typedef void __cleanup_routine_type (void *); #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); } I get errors when calling pthread_cleanup_push: =============================================== `fn' undeclared (first use in this function) `arg' undeclared (first use in this function) parse error before `{' When calling pthread_cleanup_pop: ================================= `execute' undeclared (first use in this function) parse error before `if' And additional: =============== At top level: parse error before `0' gph -- =^..^= -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |