This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Add builtins [v]asprintf and [v]dprintf


On Thu, 2 Jun 2005, Kaveh R. Ghazi wrote:

> This patch adds "extention" builtins for asprintf, vasprintf, dprintf
> and vdprintf (as declared by glibc's stdio.h.)  This ensures format
> checking is done for these functions.

glibc's <stdio.h> already has format attributes on these functions.  What 
is the benefit of having them built in?  Do you have other systems which 
have these functions, with the same semantics, but without the attributes?  
(I don't think users declaring the functions themselves rather than 
defining _GNU_SOURCE to get the definitions is particularly good 
practice.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]