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: Justin Moore <justin@xxxxxxxxxxx>
Cc: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [patch] clause_list speclist
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2001 22:50:55 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Wed, Sep 19, 2001 at 10:36:03AM -0400, Justin Moore wrote:
> 
> > > +  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.

You forgot some instances in the various client/*/diplodlg. Can you
add them?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Tank: So what do you need? Besides a miracle.
  Neo: Guns. Lots of guns.
    -- From The Matrix


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