bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] xalloc module dependencies


From: Jim Meyering
Subject: Re: [Bug-gnulib] xalloc module dependencies
Date: Wed, 31 Mar 2004 14:01:02 +0200

"Gary V. Vaughan" <address@hidden> wrote:
> xmalloc.c contains the following code:
>
> void *
> xzalloc (size_t s)
> {
> ~  return memset (xmalloc (s), 0, s);
> }
>
> void *
> xclone (void const *p, size_t s)
> {
> ~  return memcpy (xmalloc (s), p, s);
> }
>
> shouldn't xalloc Depends-on: cite memset and memcpy?

At first glance, I'd agree, but then I see that no other module depends
on either of those, in spite of the fact that those functions are used
in over 30 of gnulib's lib/*.c files.

So either it doesn't matter (because all systems provide those
two functions), or people have been adding those files manually,
or no one is using gnulib.




reply via email to

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