[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Tru64: compilation errors for current CVS
From: |
nando |
Subject: |
Re: [gnugo-devel] Tru64: compilation errors for current CVS |
Date: |
Sun, 12 Sep 2004 18:11:06 +0200 |
On Sun, Sep 12, 2004 at 12:24:50PM +0200, Arend Bayer wrote:
>
> Does it compile? (Maybe you also have to add it in line 620.)
Yes, it does for me. Having the same problem here with VC++.
Following patch fixes it altogether.
nando
- VC++ compile fix
Index: mkpat.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/mkpat.c,v
retrieving revision 1.139
diff -u -p -r1.139 mkpat.c
--- mkpat.c 8 Sep 2004 17:03:42 -0000 1.139
+++ mkpat.c 12 Sep 2004 16:02:58 -0000
@@ -3468,9 +3468,9 @@ main(int argc, char *argv[])
/* Forward declaration, which autohelpers might need. */
if (database_type != DB_FULLBOARD) {
if (database_type != DB_CORNER)
- fprintf(output_FILE, "static struct pattern %s[];\n\n", prefix);
+ fprintf(output_FILE, "static struct pattern %s[%d];\n\n", prefix, patno
+ 1);
else
- fprintf(output_FILE, "static struct corner_pattern %s[];\n\n", prefix);
+ fprintf(output_FILE, "static struct corner_pattern %s[%d];\n\n",
prefix, patno + 1);
}
/* Write the autohelper code. */