bug-gnulib
[Top][All Lists]
Advanced

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

Re: getaddrinfo.c: don't require snprintf; new function: shorttostr


From: Simon Josefsson
Subject: Re: getaddrinfo.c: don't require snprintf; new function: shorttostr
Date: Tue, 24 Oct 2006 08:49:22 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Simon Josefsson wrote:
>> > +# Prerequisites of lib/uinttostr.c.
>> > +AC_DEFUN([gl_PREREQ_UINTTOSTR], [:])
>> 
>> What are these dummy functions useful for, anyway?
>
> They separate the autoconf macros needed to determine _when_ to enable a
> replacement from the autoconf macros needed for compiling the replacement.
> The purpose is that when you change the source code of the .c file you need
> to proofread only half of the implementation.
>
> Also, sometimes we use the same .c file in two different modules; here also
> it helps.

Ok.  That doesn't explain the empty functions, but I reckon they are
used place-holders as others have suggested?  I've felt silly to add
the empty function for some trivial modules.

/Simon




reply via email to

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