Thread View: gnu.chess
1 messages
1 total messages
Started by James Van Artsdalen
Mon, 28 Jan 1991 03:46
SysVr4 gnuchess 3.1 changes
Author: James Van Artsdalen
Date: Mon, 28 Jan 1991 03:46
Date: Mon, 28 Jan 1991 03:46
52 lines
2208 bytes
2208 bytes
Comment: gcc 1.39 for SysVr4 places static uninitialized variables in
.data just like SysVr3. But they can go in .bss instead. If your
compiled gnuchess is huge, change gcc to use .bss instead of .data and
the binary will be much smaller.
The change below does two things. First, FIONREAD is in <sys/filio.h>
on SysVr4, so that #include is added surrounded by an #if. Second,
SysVr4 does not have setlinebuf, so setvbuf is used instead. SysVr3
would need this change too. "USG" is used to do this, although that
may be too optimistic depending on when the setvbuf function was added.
*** /tmp/,RCSt1a000JT Sun Jan 27 21:42:24 1991
--- nondsp.c Sun Jan 20 21:40:22 1991
***************
*** 38,43 ****
--- 38,47 ----
void TerminateSearch (int), Die (int);
#endif /* MSDOS */
+ #ifdef HAVE_FILIO
+ #include <sys/filio.h>
+ #endif
+
#include "gnuchess.h"
#define pxx " PNBRQK"
***************
*** 58,65 ****
{
mycnt1 = mycnt2 = 0;
#ifdef CHESSTOOL
setlinebuf (stdout);
! /* setvbuf(stdout,NULL,_IOLBF,BUFSIZ); */
printf ("Chess\n");
if (Level == 0 && !TCflag)
Level = 15;
--- 62,72 ----
{
mycnt1 = mycnt2 = 0;
#ifdef CHESSTOOL
+ #ifndef USG
setlinebuf (stdout);
! #else
! setvbuf(stdout,NULL,_IOLBF,BUFSIZ);
! #endif
printf ("Chess\n");
if (Level == 0 && !TCflag)
Level = 15;
--
James R. Van Artsdalen james@raid.dell.com "Live Free or Die"
Dell Computer Corporation 9505 Arboretum Blvd Austin TX 78759 512-338-8789
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads