Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: [patch] clause_list speclist
Home

[Freeciv-Dev] Re: [patch] clause_list speclist

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [patch] clause_list speclist
From: Justin Moore <justin@xxxxxxxxxxx>
Date: Wed, 19 Sep 2001 10:36:03 -0400 (EDT)

> > +  struct city *pcity;
>
> > -    for (;ITERATOR_PTR(myiter); ITERATOR_NEXT(myiter)) {
> > -      struct Clause *pclause = (struct Clause *)ITERATOR_PTR(myiter);
> > -      struct city *pcity;
> > -
> > +    clause_list_iterate(ptreaty->clauses, pclause) {
>
> IMHO variables should be declared in the most inner scope to prevent a
> pollution of the namespace.

   I moved it up to a higher scope because it was used within several
different loops.  I figured it would just be easier to have it up here.
*shrug*  Whatever.  New patch is attached.

-jdm

Department of Computer Science, Duke University, Durham, NC 27708-0129
Email:  justin@xxxxxxxxxxx

Attachment: clause_list.patch
Description: Text document


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