develooper Front page | perl.perl5.porters | Postings from September 2003

Re: Interesting - [drow@mvista.com: Re: A user's experiences with GCC-3.4 snapshots]

Thread Previous | Thread Next
From:
Enache Adrian
Date:
September 16, 2003 18:08
Subject:
Re: Interesting - [drow@mvista.com: Re: A user's experiences with GCC-3.4 snapshots]
Message ID:
20030917010718.GA1298@ratsnest.hole
On Tue, Sep 16, 2003 a.d., Mark Jason Dominus wrote:
> Mark Jason Dominus <mjd@plover.com>:
> > #include <stdio.h>
> > int main() { extern void *setproctitle(); if(setproctitle == main) return(0); else return(1); }
> > 
> 
> I meant '!=' instead of '=='.

It won't work either. The compiler will barf with something like
'pointer type mismatch' or so.
Just a cast to void* 'if ((void*)&func) ...' will probably get this right --

Regards,
Adi

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About