gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Re: Ranked Robot (fwd)


From: Paul Pogonyshev
Subject: Re: [gnugo-devel] Re: Ranked Robot (fwd)
Date: Thu, 26 Aug 2004 21:18:49 +0300
User-agent: KMail/1.6.52

Gunnar wrote:

> While doing this I stepped onto a bug in mkpat. If the last pattern in
> patterns.db has a constraint or an action, the autohelper code will be
> written twice, giving a compilation error in patterns.c. See the
> comment near the end of the patch. Paul, do you have any idea where
> the bug might be?

I do, though this cost me quite a lot of debugging.  The patch below
fixes this (already in CVS).

Paul


--- mkpat.c     26 Aug 2004 21:13:37 +0300      1.137
+++ mkpat.c     26 Aug 2004 21:17:32 +0300      
@@ -3204,6 +3204,7 @@ main(int argc, char *argv[])
          }
        }
 
+       state = 0;
        if (command == 1) { /* Pattern `name' */
          int k;
 
@@ -3277,8 +3278,6 @@ main(int argc, char *argv[])
              }
            }
          }
-
-         state = 0;
        }
        else {
          struct attribute_description *old_map = attribute_map;





reply via email to

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