Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14387) sizeof cleanup for common/
Home

[Freeciv-Dev] (PR#14387) sizeof cleanup for common/

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14387) sizeof cleanup for common/
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 Oct 2005 11:55:49 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14387 >

> [i-freeciv-lists@xxxxxxxxxxxxx - Thu Oct 20 06:20:35 2005]:
> 
> 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)))

I don't really object to the idea but I don't think it will make things
more readable.

-jason




[Prev in Thread] Current Thread [Next in Thread]