Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8720) Dynamtext
Home

[Freeciv-Dev] Re: (PR#8720) Dynamtext

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: i-freeciv-lists@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8720) Dynamtext
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 May 2004 06:26:18 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8720 >

Raimar Falke wrote:

> How do you decrease the string size? There is no function for this.
> 
> How can you get an astring where (astr->str==null) is different from
> (astr->n==0)? It is IMHO not possible.

astr_minsize(0)

>>See <MARK>.  WHy is this buffer static?  This seems totally unnecessary.
> 
> To decrease the number of malloc/free calls.

But if you remove the "static" this array will be on the stack.

jason




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