PCH merge: bootstrap failure, gengtype consumes all file descriptors
Alexandre Oliva
aoliva@redhat.com
Wed Jun 12 08:19:00 GMT 2002
On Jun 12, 2002, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
>> From: Zack Weinberg <zack at codesourcery dot com>
>>
>> The glibc obstack_printf knows stdio internals, so we can't just steal
>> it, but I think a portable implementation should be doable. It's easy
>> on a system with C99-compliant snprintf, and somewhat harder
>> elsewhere.
>> zw
> It should be easy to write an snprintf.c replacement in libiberty
> using a combination of vasprintf, strncpy, free. Right?
Except that vasprintf is not exactly as portable as one might wish.
We might want to adopt Gary V. Vaughan's snprintfv (*) for that but,
well, it's a lot of code, so I'm not sure it's worth the trouble.
(*) http://www.oranda.demon.co.uk/dist/
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc-bugs
mailing list