gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] GNU Go and gGo since 3.4


From: aquarius
Subject: Re: [gnugo-devel] GNU Go and gGo since 3.4
Date: Thu, 06 Nov 2003 16:38:43 +0100
User-agent: Opera7.21/Win32 M2 build 3218


Hi,

are you using a Win32 environment?

Buffering of GTP output has changed - see file play_gtp.c:
-------------
...
 void
 play_gtp(FILE *gtp_input, int gtp_initial_orientation)
 {
-  /* Try to make sure that we have a useful level of buffering of stdout. */
-#ifdef HAVE_SETLINEBUF
-  setlinebuf(stdout);
-#else
-  setbuf(stdout, NULL);
-#endif
+  /* Set line buffering of stdout. */
+  setvbuf(stdout, (char *)NULL, _IOLBF, 0);

   /* Inform the GTP utility functions about the board size. */
   gtp_internal_set_boardsize(board_size);
...
-------------

The new way of line-buffering using: setvbuf(stdout, (char *)NULL, _IOLBF, 0)
doesn't work - at least for me, compiling with mingw and running in Win XP.

Perhaps you like my approach to this problem - see my posted message:
http://mail.gnu.org/archive/html/gnugo-devel/2003-11/msg00004.html
with the subject:
Strange error in self-compiled GNU Go 3.5.x for Win32using gtp-mode (patch 
included)

-------------
Allan Crossman <address@hidden> wrote:

Hi,

Has something changed in the GTP since version 3.4? I can get 3.4 to work with
gGo via GTP, but 3.5.1 and 3.5.2 don't seem to.





--



reply via email to

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