[Top][All Lists]

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

Re: realloc documentation

From: Bruno Haible
Subject: Re: realloc documentation
Date: Tue, 21 Apr 2009 12:50:00 +0200
User-agent: KMail/1.9.9

Simon Josefsson wrote:
> What about a realloc-gnu which implements a behaviour we think it is
> useful?  I know that we used -gnu for modules that are glibc extensions
> over POSIX

Yes, the two standards to which gnulib leans are POSIX and glibc's behaviour.

> but I think we could extend it to be just any extension over 
> POSIX.  Alternatively, use realloc-gnulib?

Then we can call it zrealloc or wrealloc or like that. It's better to use
a different name when we create a function which is an invention of our own;
otherwise users get confused.

Now, regarding realloc specifically, what is the significant extension of
POSIX that you would propose that makes it worth documenting for us and
worth reading this documentation for the user? I think you will end up
with either 'xrealloc' or 'REALLOC-N' from the safe-alloc module...


reply via email to

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