gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] libboard and board.h


From: SP LEE
Subject: Re: [gnugo-devel] libboard and board.h
Date: Tue, 19 Aug 2003 18:03:14 -0700

> >
> >
> > The patch is now in CVS. This means a re-run of configure is needed
> > after cvs update.
> >
> > Also, I don't understand the .dsp-files, so someone should make the
> > corresponding changes there:
> >
> > new header board.h,
> > new file boardlib.c added to libboard and libengine,
> > showboard.c removed from libboard.
> >
> > Arend
> >
> >
>
> I have added new files to the dsp files attached. I'm not sure if
there
> is any coding convention of the dsp files, so comments are welcome.
>
> However, the current board.h can't be compiled, because the constants
in
> the enum colors, EMPTY, BLACK and WHITE introduce some confilicts in
> VC++ and have to be renamed.
>
> SP Lee
>
>
>

The following patch may be used to solve the problem.

SP Lee

Index: board.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/board.h,v
retrieving revision 1.3
diff -u -r1.3 board.h
--- board.h 15 Aug 2003 07:21:22 -0000 1.3
+++ board.h 20 Aug 2003 00:57:48 -0000
@@ -76,6 +76,16 @@
 #define MAX_MOVE_HISTORY 500       /* Max number of moves remembered.
*/

 /* Colors and komaster states. */
+#ifdef EMPTY
+#undef EMPTY
+#endif
+#ifdef WHITE
+#undef WHITE
+#endif
+#ifdef BLACK
+#undef BLACK
+#endif
+
 enum colors {
   EMPTY,
   WHITE,





reply via email to

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