[Freeciv-Dev] Re: (PR#14387) sizeof cleanup for common/
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14387 >
On Wed, Oct 19, 2005 at 03:08:35PM -0700, Jason Short wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14387 >
>
> This patch fixes sizeof calls in common/ to not use fixed types.
Maybe a macro?
#define ALLOC(p) (p) = fc_malloc(sizeof(*(o)))
#define ALLOC_ARRAY(a, n) (a) = fc_calloc(n,sizeof(**(a)))
Raimar
--
email: i-freeciv-lists@xxxxxxxxxxxxx
"Python 2.0 beta 1 is now available [...]. There is a long list of new
features since Python 1.6, released earlier today. We don't plan on
any new releases in the next 24 hours."
-- Jeremy Hylton at Slashdot
- [Freeciv-Dev] Re: (PR#14387) sizeof cleanup for common/,
Raimar Falke <=
|
|