[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] Re: Reference to xmalloc() in the readline FileMan applic
From: |
Stefano Sabatini |
Subject: |
[Bug-readline] Re: Reference to xmalloc() in the readline FileMan application example |
Date: |
Fri, 27 Jun 2008 15:09:08 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
In data mercoledì 2008-06-25 12:26:32 +0200, Stefano Sabatini ha scritto:
> Hi all,
>
> the application example in the readline manual contains a reference to
> the xmalloc function which isn't defined in the file itself:
>
> extern char *xmalloc ();
>
> I think you refer to something such as this;
> http://www.personal.leeds.ac.uk/~bgy1mm/XMalloc/xmalloc.html
>
> Nonetheless I think a better solution would be either to implement
> xmalloc in the file itself, or even better use some new corresponding
> standard function (but I cannot figure out now).
>
> And BTW the code is also missing some few headers like <stdio.h> and
> <strings.h>, and maybe the dupstr() implementation should be replaced
> by the use of strdup().
>
> If you want to suggest me how to fix the example I'll try to manage to
> send you a patch.
>
> Best regards and thanks for libreadline.
BTW, what about to doxygenate libreadline? Doxygenated documentation
is getting quite popular, and cool things may be done using a
consistent documentation format (for example to use a parsing engine
such as semantic then expose to the user all the related
documentation).
I can eventually volunteer for that task.
Best regards.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-readline] Re: Reference to xmalloc() in the readline FileMan application example,
Stefano Sabatini <=