bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new *z*printf-gnu modules


From: Bruno Haible
Subject: Re: new *z*printf-gnu modules
Date: Wed, 26 Jun 2024 09:37:42 +0200

I wrote:
> This is more hairy than you might think. Because of the GCC attribute syntax.
> 
> stdio.in.h does
> 
> /* Don't break __attribute__((format(printf,M,N))).  */
> #    define printf __printf__
> 
> because there are not many symbols that can be used in place of 'printf'.
> 
> Do you have an idea for doing this nicely?

#define printf(fmt,...) zprintf(fmt,__VA_ARGS__)

This is good enough, because no one uses printf as a function pointer.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]