Fix Alfil bug
[xboard.git] / gamelist.c
index 07619f2..c200251 100644 (file)
@@ -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
  *
@@ -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(&currentListGame))) {
@@ -280,7 +280,7 @@ int GameListBuild(f)
            do {
                yyboardindex = 1;
                offset = yyoffset();
-               cm = (ChessMove) yylex();
+               cm = (ChessMove) Myylex();
                if (cm == PGNTag) {
                    ParsePGNTag(yy_text, &currentListGame->gameInfo);
                }
@@ -435,7 +435,7 @@ char * GameListLine( int number, GameInfo * gameInfo )
             break;
         case GLT_WHITE_ELO:
             if( gameInfo->whiteRating > 0 )
-                sprintf( buf, "%d", gameInfo->whiteRating );
+             sprintf( buf,  "%d", gameInfo->whiteRating );
             else
              safeStrCpy( buf, "?" , 2*MSG_SIZ);
             break;