ListGame *currentListGame = NULL;
int error;
int offset;
- char lastComment[MSG_SIZ];
+ char lastComment[MSG_SIZ], buf[MSG_SIZ];
GameListFree(&gameList);
yynewfile(f);
case BlackWins:
case GameIsDrawn:
case GameUnfinished:
+ if(!currentListGame) break;
if (currentListGame->gameInfo.resultDetails != NULL) {
free(currentListGame->gameInfo.resultDetails);
}
default:
break;
}
+ if(gameNumber % 1000 == 0) {
+ snprintf(buf, MSG_SIZ,"Reading game file (%d)", gameNumber);
+ DisplayTitle(buf);
+ }
}
while (cm != (ChessMove) 0);
-
if (appData.debugMode) {
for (currentListGame = (ListGame *) gameList.head;
currentListGame->node.succ;
}
}
+ DisplayTitle("WinBoard");
rewind(f);
yyskipmoves = FALSE;
return 0;