cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: yangtse: curl/lib sendf.c,1.125,1.126 sendf.h,1.33,1.34

From: James Dennett <jdennett_at_technocom-wireless.com>
Date: Tue, 27 Mar 2007 10:04:43 -0700

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
> bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
> Sent: Tuesday, March 27, 2007 7:43 AM
> To: libcurl development
> Subject: Re: yangtse: curl/lib sendf.c,1.125,1.126 sendf.h,1.33,1.34
>
> On Tue, Mar 27, 2007 at 11:53:02AM +0100, Jamie Lokier wrote:
> > Why not this, to optimise away the function call in most cases?
> >
> > #define infof if (1) {} else Curl_infof
>
> This is going to give "code not reachable" warnings on some compilers,
and
> will still leave the strings in the binaries on others.

Or something like the following?
#define infof (void) sizeof Curl_infof

-- James
Received on 2007-03-27