This is the mail archive of the gcc-bugs@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]

Re: rebuilding fixincludes - good news, bad news and RFE


> Date: 6 Apr 1999 14:31:03 -0000
> From: korbb@egcs.cygnus.com

> The reason is that all sprintf functions require that you know the
> number of arguments at compile time.

False.  vsprintf doesn't need to know.

> AutoGen does not know this at compile time.

conclusion, it should use vsprintf.  It is almost portable (it appears
in libiberty).

> I have a total re-implementation of sprintf that uses an argv style
> list of arguments to the format.

Wow, talk about reinventing the wheel.  Well, you should make it
conform to vsprintf, and put it in libiberty, if your version is truly
better than Per's version.


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