🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #6018

SysVr4 gnuchess 3.1 changes

#6018
From: James Van Artsdalen
Date: Mon, 28 Jan 1991 03:46
52 lines
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
Technical Details
Message-ID: <14553@uudell.dell.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!cs.utexas.edu!chinacat!uudell!raid.dell.com!james

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,b68ceba6f1609791,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1991-01-28 13:16:39 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!cs.utexas.edu!chinacat!uudell!raid.dell.com!james
From: james@raid.dell.com (James Van Artsdalen)
Newsgroups: gnu.chess
Subject: SysVr4 gnuchess 3.1 changes
Message-ID: <14553@uudell.dell.com>
Date: 28 Jan 91 03:46:00 GMT
Sender: news@uudell.dell.com
Reply-To: james@raid.dell.com (James Van Artsdalen)
Distribution: gnu
Organization: Institute of Applied Cosmology, Austin TX
Lines: 52