Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Weird statement
Home

[Freeciv-Dev] Re: Weird statement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>, freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Weird statement
From: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Date: Sun, 26 Aug 2001 16:01:04 -0400

I think all you need to remove is the cptr_s=str in the for initializer.

The whitespace/garbage skip that the for does is not unreasonable, and may
for example mean that an "=" is taken out to conform to 1.11.4, that 
someone broke and someone fixed.

Cheers,
RossW

At 06:48 PM 01/08/26 +0200, Raimar Falke wrote:
>On Sun, Aug 26, 2001 at 09:32:58AM -0400, Ross W. Wetmore wrote:
>> You need more context to unscramble this one. I looked at the
>> source. And while I am confused, here are some options.
>> 
>> 1)  It is not a flip of variables, i.e. str=cptr_s to mark the
>>     spot, as str isn't used after.
>> 2)  It really looks like it could have been an old version of the
>>     previous for, or some sanity repeat of the previous that takes
>>     out more than just whitespace. 
>> 3)  It could also be a cut and paste error that reinitializes the 
>>     counter accidently - this is most likely.
>> 4)  It might be swapped with the PREFIX condition, in that once
>>     you eliminate leading trash and the prefix, you are ready to
>>     begin command parsing.
>> 5)  But I don't know if PREFIXes can have trailing white space.
>
>Whatever it was before it is now useless and will be removed.
>
>       Raimar
>
>-- 
> email: rf13@xxxxxxxxxxxxxxxxx
> "SIGDANGER - The System is likely to crash soon"
>
>



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