delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/23/15:23:21

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
X-Authentication-Warning: tzatziki.cs.umu.se: marcus owned process doing -bs
Date: Sun, 23 Sep 2001 21:22:33 +0200 (MET DST)
From: Marcus Westerlund <marcus AT cs DOT umu DOT se>
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
cc: <cygwin AT cygwin DOT com>
Subject: Re: bug in definition for pthread_cleanup_push
In-Reply-To: <09eb01c14400$84979560$0200a8c0@lifelesswks>
Message-ID: <Pine.SOL.4.33.0109232118550.19682-100000@tzatziki.cs.umu.se>
MIME-Version: 1.0

On Sun, 23 Sep 2001, Robert Collins wrote:

> ----- Original Message -----
> From: "Marcus Westerlund" <marcus AT cs DOT umu DOT se>
> To: <cygwin AT cygwin DOT com>
> Sent: Friday, September 21, 2001 5:49 AM
> Subject: bug in definition for pthread_cleanup_push
>
>
> > cygwin 1.3.3-2: file pthread.h: line 104:
> >
> > typedef void __cleanup_routine_type (void *);
> >
> > should be:
> >
> > typedef void (*__cleanup_routine_type) (void *);
> >
> > otherwice it isn't defined as function pointer
>
> It's being defined as a function type, not a pointer to a function type.
> What error/symptom are you seeing that makes you want/need to change
> this?
>
> Rob
>


I'm trying to get licq to compile and run and I get:

../../licq-1.0.3/src/icqd-threads.cpp: In function `void *
ProcessRunningEvent_Server_tep(void *)':
../../licq-1.0.3/src/icqd-threads.cpp:65: function `void
__cleanup_routine(void *)' is initialized like a variable

icqd-threads.cpp:

...

#if ICQ_VERSION == 5
  // Make sure we are the next ack in line
  pthread_cleanup_push( (void (*)(void *))&pthread_mutex_unlock,
&d->mutex_serverack);
  pthread_mutex_lock(&d->mutex_serverack);
  while (e->m_nSequence > (unsigned short)(d->m_nServerAck + 1))
  {
    pthread_cond_wait(&d->cond_serverack, &d->mutex_serverack);
  }
  pthread_cleanup_pop(1);
#endif

...


marcus AT cs DOT umu DOT se || macce AT acc DOT umu DOT se || mze AT cyberspace DOT org
-----------------------------------------------------------
  main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)for(x
  =0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))for(i=k=r=0;
  j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019