Article View: gnu.chess
Article #4997Additional patches to pl70
From: Tim Mann
Date: Fri, 20 May 1994 18:23
Date: Fri, 20 May 1994 18:23
63 lines
3006 bytes
3006 bytes
The following patches to gnuchess 4.0 pl70 fix two minor bugs, and undo an
incompatible change to the "new" command that was causing a problem with
xboard. Without the patches, xboard will sometimes hang when you use gnuchess
to analyze a position created with Edit Position, and perhaps in other cases
too.
[NOTE: These are the same patches I sent to bug-gnu-chess yesterday.]
--Tim
*** dspcom.c.~1~ Thu May 19 15:16:51 1994
--- dspcom.c Thu May 19 15:21:45 1994
***************
*** 1153,1158 ****
--- 1153,1164 ----
else if (strcmp (s, CP[172]) == 0) /*new*/
{
NewGame ();
+ #ifdef XBOARD
+ /* Make this work the old way for compatibility */
+ flag.beep = true;
+ dither = 0;
+ flag.easy = true;
+ #endif XBOARD
UpdateDisplay (0, 0, 1, 0);
}
else if (strcmp (s, CP[171]) == 0) /*list*/
*** nondsp.c.~1~ Thu May 19 15:16:53 1994
--- nondsp.c Thu May 19 15:22:32 1994
***************
*** 156,162 ****
(dither) ? CP[93] : CP[92], (flag.easy) ? CP[93] : CP[92]);
/*printz ("Beep: %-12s Transposition file: %s\n",*/
printz (CP[36],
! (flag.cache) ? CP[93] : CP[92], (flag.hash) ? CP[93] : CP[92]);
/*printz ("Time Control %s %d moves %d seconds %d opr %d depth\n", (TCflag) ? "ON" : "OFF",*/
if(flag.gamein)
printz (CP[230], (TCflag) ? CP[93] : CP[92],
--- 156,162 ----
(dither) ? CP[93] : CP[92], (flag.easy) ? CP[93] : CP[92]);
/*printz ("Beep: %-12s Transposition file: %s\n",*/
printz (CP[36],
! (flag.beep) ? CP[93] : CP[92], (flag.hash) ? CP[93] : CP[92]);
/*printz ("Time Control %s %d moves %d seconds %d opr %d depth\n", (TCflag) ? "ON" : "OFF",*/
if(flag.gamein)
printz (CP[230], (TCflag) ? CP[93] : CP[92],
*** ttable.h.~1~ Thu May 19 15:16:53 1994
--- ttable.h Thu May 19 15:22:50 1994
***************
*** 156,161 ****
extern long EADD, EGET; /* Evaluation cache stats counters */
extern unsigned long HashCnt, HashAdd, FHashCnt, FHashAdd, HashCol, THashCol;
#else
! #define ClearHashStats() /* stats calls ignored */
! #define ShowHashStats()
#endif
--- 156,161 ----
extern long EADD, EGET; /* Evaluation cache stats counters */
extern unsigned long HashCnt, HashAdd, FHashCnt, FHashAdd, HashCol, THashCol;
#else
! #define ClearHashStats() /* stats calls ignored */
! #define ShowHashStats()
#endif
Technical Details
Message-ID:
<2riv79$5aj@src-news.pa.dec.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!get.hooked.net!decwrl!pa.dec.com!src.dec.com!mannReferences:
<1994May20.090745.10090@puh.cb.uu.se> <2riuud$56s@src-news.pa.dec.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,11b100961de89373 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-05-20 11:36:06 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!get.hooked.net!decwrl!pa.dec.com!src.dec.com!mann From: mann@src.dec.com (Tim Mann) Newsgroups: gnu.chess Subject: Additional patches to pl70 Date: 20 May 1994 18:23:37 GMT Organization: DEC Systems Research Center Lines: 63 Message-ID: <2riv79$5aj@src-news.pa.dec.com> References: <1994May20.090745.10090@puh.cb.uu.se> <2riuud$56s@src-news.pa.dec.com> NNTP-Posting-Host: cypress.pa.dec.com