bug-gnulib
[Top][All Lists]
Advanced

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

Re: snprintfv for gnulib?


From: Paolo Bonzini
Subject: Re: snprintfv for gnulib?
Date: Fri, 23 Feb 2007 13:36:05 +0100
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)


- The unlocked I/O module isn't actually what snprintfv wants.  It
  needs flockfile and unlocked-io.h defines that to nothing.  All it
  really wants is an autoconf check for unlocked IO.

Yes, the same thing that gnulib does in getdelim:

#if !HAVE_FLOCKFILE
# undef flockfile
# define flockfile(x) ((void) 0)
#endif
#if !HAVE_FUNLOCKFILE
# undef funlockfile
# define funlockfile(x) ((void) 0)
#endif

We can just duplicate the code for now and put it in the todo list.

- I don't know how to make one gnulib module override another yet, but
  I'm sure we can work something out for the dynamic loading support -
  perhaps check an indicator #define for the optional module.

Same idea I had.

I will work on gnulib-izing snprintfv first.  Are there any particular
platforms you would recommend compiling for?  Otherwise I'll default
to Linux and mingw32.

Yeah, I can help testing it on MacOS.  Thank you very much.

Paolo




reply via email to

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