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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14387) sizeof cleanup for common/
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Wed, 19 Oct 2005 23:20:41 -0700
Reply-to: bugs@xxxxxxxxxxx

<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





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