This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [rfc] asprintf() -> xasprintf()


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]