gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] 'score' cleanup


From: Gunnar Farneback
Subject: Re: [gnugo-devel] 'score' cleanup
Date: Tue, 09 Sep 2003 23:01:48 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

SP Lee wrote:
> >  gtp_estimate_score(char *s)
> >  {
> >    UNUSED(s);
> > +  float score;
> > +  float upper_bound, lower_bound;
> >
> >    silent_examine_position(WHITE, EXAMINE_DRAGONS);
> >
> 
> Somehow this modification can't be compiled under windows. Moving the
> two 'float' definitions above UNUSED is then OK.

This is C89/C99 issue. Under the older C standard C89 it's not okay,
but it is okay under C99. Since we aim for C89 compliance it's to be
considered a bug. (Newer versions of gcc allow this, so it's easy to
miss for us who are using it.)

I've fixed it in CVS.

/Gunnar




reply via email to

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