X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=26268399cacadd5df21e43c4d7a47e5667188199;hb=4d04bc8a6c2d5e410d519b25164613c5e5c2d160;hp=028b961c4db911127de8a7c312ee9fcde8435c39;hpb=e80c98c04e951e5026a24531cd6316be962636b9;p=xboard.git diff --git a/gamelist.c b/gamelist.c index 028b961..2626839 100644 --- a/gamelist.c +++ b/gamelist.c @@ -1,7 +1,7 @@ /* * gamelist.c -- Functions to manage a gamelist * - * Copyright 1995, 2009, 2010 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -214,7 +214,7 @@ int GameListBuild(f) ListGame *currentListGame = NULL; int error; int offset; - char lastComment[MSG_SIZ]; + char lastComment[MSG_SIZ], buf[MSG_SIZ]; GameListFree(&gameList); yynewfile(f); @@ -225,7 +225,7 @@ int GameListBuild(f) do { yyboardindex = 0; offset = yyoffset(); - cm = (ChessMove) yylex(); + cm = (ChessMove) Myylex(); switch (cm) { case GNUChessGame: if ((error = GameListNewGame(¤tListGame))) { @@ -280,7 +280,7 @@ int GameListBuild(f) do { yyboardindex = 1; offset = yyoffset(); - cm = (ChessMove) yylex(); + cm = (ChessMove) Myylex(); if (cm == PGNTag) { ParsePGNTag(yy_text, ¤tListGame->gameInfo); } @@ -316,10 +316,13 @@ int GameListBuild(f) 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; @@ -331,6 +334,7 @@ int GameListBuild(f) } } + DisplayTitle("WinBoard"); rewind(f); yyskipmoves = FALSE; return 0; @@ -496,7 +500,6 @@ char * GameListLineFull( int number, GameInfo * gameInfo ) return ret; } - // --------------------------------------- Game-List options dialog -------------------------------------- // back-end