gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] VC repair


From: Nando
Subject: [gnugo-devel] VC repair
Date: Sat, 4 Jan 2003 07:04:05 +0100

Hi,

It seems paul_3_15.4 breaks the VC build. Namely, VC doesn't like forward
declarations of arrays of unknown sizes. Declaring them 'extern' instead of
'static' makes VC "happy" (oh well). I'm unsure this is the right thing to
do though.

/nando

Index: patterns/mkpat.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/mkpat.c,v
retrieving revision 1.108
diff -u -r1.108 mkpat.c
--- patterns/mkpat.c    3 Jan 2003 18:23:42 -0000       1.108
+++ patterns/mkpat.c    4 Jan 2003 05:44:45 -0000
@@ -3037,9 +3037,9 @@
   /* 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, "extern struct pattern %s[];\n\n", prefix);
     else
-      fprintf(output_FILE, "static struct corner_pattern %s[];\n\n", prefix);
+      fprintf(output_FILE, "extern struct corner_pattern %s[];\n\n", prefix);
   }

   /* Write the autohelper code. */




reply via email to

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