Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
Home

[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 23:27:07 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Thu, Sep 06, 2001 at 12:42:18PM -0700, Paul Zastoupil wrote:
> On Thu, Sep 06, 2001 at 09:35:08AM +0200, Raimar Falke wrote:
> > On Wed, Sep 05, 2001 at 03:01:42PM -0700, Paul Zastoupil wrote:
> > >  
> > > /**************************************************************************
> > > @@ -184,6 +185,7 @@
> > >  {
> > >    int out_only[] = {E_IMP_BUY, E_IMP_SOLD, E_UNIT_BUY, E_MY_DIPLOMAT,
> > >              E_UNIT_LOST_ATT, E_UNIT_WIN_ATT};
> > > +  int all[] = {E_MESSAGE_WALL};
> > >    int i;
> > >  
> > >    for(i=0; i<E_LAST; i++) {
> > > @@ -191,6 +193,9 @@
> > >    }
> > >    for(i=0; i<sizeof(out_only)/sizeof(int); i++) {
> > >      messages_where[out_only[i]] = MW_OUTPUT;
> > > +  }
> > > +  for(i=0; i<sizeof(all)/sizeof(int); i++) {
> > 
> > A general macro for this?
> > $ grep -Ir "sizeof.*/.*sizeof" .|wc -l
> >      30
> 
> How about this?

Exactly what I wanted. Applied.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "- Amiga Y2K fixes (a bit late, wouldn't you say?)"
    -- Linus Torvalds about linux 2.4.0 at 4 Jan 2001


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