gnugo-devel
[Top][All Lists]
Advanced

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

RE: [gnugo-devel] VC repair


From: Portela Fernand
Subject: RE: [gnugo-devel] VC repair
Date: Sun, 22 Dec 2002 18:23:52 +0100

I wrote:

> Well, I just did a 'cvs update' and I'm getting now a load of troubles
> with arend_3_13.8. Currently, nothing builds. I'm looking into it.

It seems the dumb VC++ doesn't understand these :

&INITIAL_INFLUENCE(color)
&OPPOSITE_INFLUENCE(color)

AFAICT, these macros are always used with preceding '&'. So what about
changing the definition to something like this :

#define INITIAL_INFLUENCE(color) ((color) == WHITE ? \
                                                &initial_white_influence \
                                                          :
&initial_black_influence)

After this change (and corresponding '&' removals in all occurences of
INITIAL_INFLUENCE and OPPOSITE_INFLUENCE), I can compile cleanly with
EXPERIMENTAL_READING 0.


For EXPERIMENTAL_READING 1, I still have troubles in mkpat.c around line
2076.

#if EXPERIMENTAL_READING
  if (database_type == DB_TREE)
    tree_write_patterns(outfile, prefix);
  else
    fprintf(outfile, "\nvoid\ninit_tree_%s(void)\n{\n"
            "  /* nothing to do - tree option not compiled */\n"
            "}\n\n", name);
#endif

VC++ says tree_write_patterns() doesn't have that much parameters and the
name variable is undefined.

/nando



reply via email to

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