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: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
From: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 12:42:18 -0700 (PDT)

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?


-- 
Paul Zastoupil

Attachment: array_size.diff
Description: Text document


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