[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
array_size.diff
Description: Text document
- [Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939),
Paul Zastoupil <=
|
|