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: Fri, 28 May 2004 09:54:51 -0700
Reply-to: rt@xxxxxxxxxxx

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

Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8720 >
> 
> On Tue, May 25, 2004 at 06:26:18AM -0700, Jason Short wrote:
> 
>><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)
> 
> IMHO is in the sequence 
> 
>  astr_init(x);
>  astr_minsize(x,0);
> 
> the second line a nop.

But what about

   astr_init(x);

   astr_minsize(x, 5);
   astr_vadd(x, "foo");

   astr_minsize(x, 0);
   astr_minsize(x, 10);

jason




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