Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gerrit.haase@t-online.de>
Organization: Esse keine toten Tiere
To: cygwin@cygwin.com
Date: Thu, 17 May 2001 21:22:31 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: pthread.h
Reply-to: gerrit.haase@t-online.de
Message-ID: <3B044117.19260.A47AA97@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001@t-dialin.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

