gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] fix TRACE_READ_RESULTS


From: Arend Bayer
Subject: [gnugo-devel] fix TRACE_READ_RESULTS
Date: Sun, 25 Jan 2004 00:38:35 +0100 (CET)

- fix compilation with #define TRACE_READ_RESULTS 1

Arend


Index: engine/cache.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/cache.h,v
retrieving revision 1.41
diff -u -p -r1.41 cache.h
--- engine/cache.h      24 Jan 2004 23:21:13 -0000      1.41
+++ engine/cache.h      24 Jan 2004 23:38:56 -0000
@@ -354,13 +354,12 @@ int get_read_result2(enum routine_id rou
  * return a result from a reading function and where we want to
  * store the result in the hash table at the same time.
  */
-#if !TRACE_READ_RESULTS

 #define READ_RETURN0_NG(komaster, kom_pos, routine, str, remaining_depth) \
   do { \
-    tt_update(&ttable, komaster, kom_pos, routine, str, remaining_depth, NULL,\
-              0, 0, NO_MOVE);\
-    return 0; \
+    tt_update(&ttable, komaster, kom_pos, routine, str, remaining_depth, \
+             NULL, 0, 0, NO_MOVE);\
+   return 0; \
   } while (0)

 #define READ_RETURN_NG(komaster, kom_pos, routine, str, remaining_depth, 
point, move, value) \
@@ -379,7 +378,7 @@ int get_read_result2(enum routine_id rou
     return (value1); \
   } while (0)

-/* ---------------- */
+#if !TRACE_READ_RESULTS

 #define READ_RETURN0(read_result) \
   do { \
@@ -397,7 +396,6 @@ int get_read_result2(enum routine_id rou
     } \
     return (value); \
   } while (0)
-

 #define READ_RETURN_SEMEAI(read_result, point, move, value_a, value_b) \
   do { \
Index: engine/hash.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/hash.h,v
retrieving revision 1.23
diff -u -p -r1.23 hash.h
--- engine/hash.h       24 Jan 2004 04:04:56 -0000      1.23
+++ engine/hash.h       24 Jan 2004 23:38:56 -0000
@@ -33,9 +33,6 @@
  * (Reading/Hashing) for more information.
  */

-/* Dump (almost) all read results. */
-#define TRACE_READ_RESULTS 0
-
 /* Hash values and the compact board representation should use the
  * longest integer type that the platform can handle efficiently.
  * Typically this would be a 32 bit integer on a 32 bit platform and a




reply via email to

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