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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: cp.ml.freeciv.dev@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#15126) patch: fc_free macro
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Jan 2006 16:51:43 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Christian Prochaska wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15126 >
> 
>>[jdorje - Do 12. Jan 2006, 00:08:51]:
>>
>>but FC_FREE still needs to be capitalized.

> Oh, then it seems I still didn't understand the problem :-/
> 
> What is the crucial difference to the "fc_malloc" macro?

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





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