Article View: comp.sources.bugs
Article #750Bug fix for CHESS
From: Scott Schwartz
Date: Thu, 07 May 1987 04:26
Date: Thu, 07 May 1987 04:26
13 lines
1184 bytes
1184 bytes
Recently jhs@hpltca.HP.COM (John Stanback) posted a chess program
to net.sources.games. Unfortunately there is a nasty bug in it.
On line 45 (or so) he declares "short index[64]". But "index" is
also a BSD library call. Under certain circumstances (I noticed
this when my tty was pseudo-tty: under suntools and under UW)
curses will call index, unsuccessfully. The fix is to add
#define index Index
somewhere at the start of all the other defines.
--
# Scott Schwartz
# UUCP: ...{{seismo,ihnp4}!bpa, cbmvax!vu-vlsi, sun!liberty}!swatsun!schwartz
# AT&T: (215)-328-8610 /* lab phone */
Technical Details
Message-ID:
<1114@thebes.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!ll-xn!ames!amdcad!cae780!hplabs!sdcrdcf!burdvax!bpa!cbmvax!vu-vlsi!hvrunix!swatsun!schwartzShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!ll-xn!ames!amdcad!cae780!hplabs!sdcrdcf!burdvax!bpa!cbmvax!vu-vlsi!hvrunix!swatsun!schwartz From: schwartz@swatsun (Scott Schwartz) Newsgroups: comp.sources.bugs Subject: Bug fix for CHESS Message-ID: <1114@thebes.UUCP> Date: Thu, 7-May-87 00:26:05 EDT Article-I.D.: thebes.1114 Posted: Thu May 7 00:26:05 1987 Date-Received: Sat, 9-May-87 21:50:23 EDT Organization: Swarthmore College, Swarthmore PA Lines: 13 Keywords: chess, bugs, cross-compilation type checking