Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2006:
[Freeciv-Dev] (PR#15126) patch: fc_free macro
Home

[Freeciv-Dev] (PR#15126) patch: fc_free macro

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#15126) patch: fc_free macro
From: "Christian Prochaska" <cp.ml.freeciv.dev@xxxxxxxxxxxxxx>
Date: Wed, 11 Jan 2006 17:30:31 -0800
Reply-to: bugs@xxxxxxxxxxx

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

> [jdorje - Do 12. Jan 2006, 00:51:42]:
> 
> 
> fc_malloc behaves exactly like a function call would.
> 
> fc_free does not, because it modifies the parameter being given to it, 
> which is impossible using a function.
> 
> -jason
> 

Ok, now it's clear :-)

Then the proposed patch is still "fc_free-2006-01-10.1.diff"

(#define FC_FREE(ptr) do { free(ptr); ptr = NULL; } while(0))



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