This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit] include alloca.h if available.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 31 Aug 2010 21:38:10 -0700
- Subject: Re: [RFA/commit] include alloca.h if available.
- References: <1283281511-30193-1-git-send-email-brobecker@adacore.com> <201008312055.40504.pedro@codesourcery.com> <20100901015944.GT2986@adacore.com>
> If it is just for malloc, it sounds like the include is no longer
> necessary? Unless of course malloc.h is the only location where
> alloca is defined on mingw32.
I just checked, and from what I can tell, no alloca.h on MinGW.
So the question is: Do we want to group all includes of malloc.h
in server.h? I don't see any strong reason to believe that one
way or the other is better, so I can live with the status quo.
But I'm happy to group them all, or even move the include of
alloca.h inside the various .c file as needed (it seems odd, now
that I think of it, to include alloca.h in server.h, and yet have
the includes of malloc.h spread out in the .c files).
--
Joel