This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] asprintf() -> xasprintf()
- To: rearnsha at arm dot com
- Subject: Re: [rfc] asprintf() -> xasprintf()
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 14 Nov 2000 11:38:55 -0500
- CC: "Frank Ch. Eigler" <fche at redhat dot com>, Andrew Cagney <ac131313 at cygnus dot com>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Red Hat , Inc. - Toronto
- References: <200011141623.QAA28807@cam-mail2.cambridge.arm.com>
Richard Earnshaw wrote:
>
> > Well, we did move GDB to ANSI, but I don't fell comfortable just assuming that
> > all free() implementations are already compliant.
>
> You might have moved the source code you write to ANSI, but I bet you
> didn't move the system libraries. You've really moved to freestanding
> ANSI.
>
Yes, requiring ANSI libraries seems to be one step further, right?
The good thing about the FREE macro is that the test can be removed when it
is not necessary (maybe a configuration test would do it).
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9