Re: unknown conversion %m - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unknown conversion %m
Date
Msg-id 17988.1303965016@sss.pgh.pa.us
Whole thread Raw
In response to Re: unknown conversion %m  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: unknown conversion %m  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> What I'm thinking of doing is to set up something like:
>     #define PG_PRINTF_CHECK __printf__
> and on Windows redefine it to __gnu_printf__, and then set all the 
> formats to use  PG_PRINTF_CHECK.

> Sound OK?

+1 ... those __attribute__ declarations are messy enough already
without wrapping #ifdefs around them.  (Don't want to find out
what pgindent would do with that ...)

Possibly PG_PRINTF_ATTRIBUTE would be a better name, but he who
does the work gets to pick.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: unknown conversion %m
Next
From: Tom Lane
Date:
Subject: Re: unknown conversion %m