[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Debug flags
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] Debug flags |
Date: |
Mon, 10 Oct 2005 17:27:59 +0200 (CEST) |
Stéphane wrote:
> There seems to be a clash between the last debug flags, as defined in gnugo.h
> :
>
> #define DEBUG_ORACLE_STREAM 0x1000000
> #define DEBUG_LARGE_SCALE 0x1000000
> #define DEBUG_SPLIT_OWL 0x2000000
>
> DEBUG_LARGE_SCALE should probably be 0x2000000, and DEBUG_SPLIT_OWL be
> 0x4000000
As Dan said, this shouldn't be a problem.
> And we should also update accordingly the message displayed by the --
> debug-flags option, ie change the end of the DEBUG_FLAGS macro in main.c from
Indeed, and I think it is safer to move the DEBUG_FLAGS macro to
gnugo.h. Hopefully it will stay in sync then.
Arend
Index: engine/gnugo.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/gnugo.h,v
retrieving revision 1.122
diff -u -p -r1.122 gnugo.h
--- engine/gnugo.h 7 Oct 2005 23:22:31 -0000 1.122
+++ engine/gnugo.h 10 Oct 2005 15:26:04 -0000
@@ -148,6 +148,7 @@ extern int output_flags; /* amount
/* debug flag bits */
/* NOTE : can specify -d0x... */
+/* Please keep this list in sync with the DEBUG_FLAGS string below. */
#define DEBUG_INFLUENCE 0x0001
#define DEBUG_EYES 0x0002
#define DEBUG_OWL 0x0004
@@ -175,6 +176,40 @@ extern int output_flags; /* amount
#define DEBUG_ORACLE_STREAM 0x1000000
#define DEBUG_LARGE_SCALE 0x1000000
#define DEBUG_SPLIT_OWL 0x2000000
+
+
+#define DEBUG_FLAGS "\
+DEBUG_INFLUENCE 0x0001\n\
+DEBUG_EYES 0x0002\n\
+DEBUG_OWL 0x0004\n\
+DEBUG_ESCAPE 0x0008\n\
+DEBUG_MATCHER 0x0010\n\
+DEBUG_DRAGONS 0x0020\n\
+DEBUG_SEMEAI 0x0040\n\
+DEBUG_LOADSGF 0x0080\n\
+DEBUG_HELPER 0x0100\n\
+DEBUG_READING 0x0200\n\
+DEBUG_WORMS 0x0400\n\
+DEBUG_MOVE_REASONS 0x0800\n\
+DEBUG_OWL_PERFORMANCE 0x1000\n\
+DEBUG_BREAKIN 0x2000\n\
+DEBUG_FILLLIB 0x4000\n\
+DEBUG_READING_PERFORMANCE 0x8000\n\
+DEBUG_SCORING 0x010000\n\
+DEBUG_AFTERMATH 0x020000\n\
+DEBUG_ATARI_ATARI 0x040000\n\
+DEBUG_READING_CACHE 0x080000\n\
+DEBUG_TERRITORY 0x100000\n\
+DEBUG_PERSISTENT_CACHE 0x200000\n\
+DEBUG_TOP_MOVES 0x400000\n\
+DEBUG_MISCELLANEOUS 0x800000\n\
+DEBUG_ORACLE_STREAM 0x1000000\n\
+DEBUG_LARGE_SCALE 0x1000000\n\
+DEBUG_SPLIT_OWL 0x2000000\n\
+"
+
+
+
/* hash flag bits
*
Index: interface/main.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/main.c,v
retrieving revision 1.119
diff -u -p -r1.119 main.c
--- interface/main.c 7 Oct 2005 23:22:31 -0000 1.119
+++ interface/main.c 10 Oct 2005 15:26:04 -0000
@@ -1548,34 +1548,6 @@ Options providing detailed reading resul
--genmove <color> generate a move for color\n\
"
-#define DEBUG_FLAGS "\
-DEBUG_INFLUENCE 0x0001\n\
-DEBUG_EYES 0x0002\n\
-DEBUG_OWL 0x0004\n\
-DEBUG_ESCAPE 0x0008\n\
-DEBUG_MATCHER 0x0010\n\
-DEBUG_DRAGONS 0x0020\n\
-DEBUG_SEMEAI 0x0040\n\
-DEBUG_LOADSGF 0x0080\n\
-DEBUG_HELPER 0x0100\n\
-DEBUG_READING 0x0200\n\
-DEBUG_WORMS 0x0400\n\
-DEBUG_MOVE_REASONS 0x0800\n\
-DEBUG_OWL_PERFORMANCE 0x1000\n\
-DEBUG_BREAKIN 0x2000\n\
-DEBUG_FILLLIB 0x4000\n\
-DEBUG_READING_PERFORMANCE 0x8000\n\
-DEBUG_SCORING 0x010000\n\
-DEBUG_AFTERMATH 0x020000\n\
-DEBUG_ATARI_ATARI 0x040000\n\
-DEBUG_READING_CACHE 0x080000\n\
-DEBUG_TERRITORY 0x100000\n\
-DEBUG_OWL_PERSISTENT_CACHE 0X200000\n\
-DEBUG_TOP_MOVES 0x400000\n\
-DEBUG_MISCELLANEOUS 0x800000\n\
-DEBUG_ORACLE_STREAM 0x1000000\n\
-DEBUG_LARGE_SCALE 0x1000000\n\
-"
/*
* Since the maximum string length is 2048 bytes in VC++ we
Re: [gnugo-devel] Debug flags,
Arend Bayer <=