X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=parser.h;h=9ffacc991e6dafa1ca9d2d29484c7177dac32e76;hb=f7f09e5d0b183a416c4069f2c28f865c680045c7;hp=78e8de60ab651b5180ee81066f568cfd35e18995;hpb=00f6fcd2f683cda76e458177526a96f94957d345;p=xboard.git diff --git a/parser.h b/parser.h index 78e8de6..9ffacc9 100644 --- a/parser.h +++ b/parser.h @@ -5,7 +5,8 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free + * Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -53,8 +54,8 @@ extern void yynewfile P((FILE *f)); extern void yynewstr P((char *s)); -extern int yylex P((void)); -extern ChessMove yylexstr P((int boardIndex, char *s)); +extern int Myylex P((void)); // [HGM] yylex now globally invisible, all calls must use wrapper +extern ChessMove yylexstr P((int boardIndex, char *s, char *buf, int buflen)); extern char currentMoveString[]; extern int yyboardindex; extern int yyskipmoves; /* If TRUE, all moves are reported as AmbiguousMove @@ -62,5 +63,6 @@ extern int yyskipmoves; /* If TRUE, all moves are reported as AmbiguousMove extern char *yy_text; /* Needed because yytext can be either a char[] or a (non-constant) char* */ extern int yyoffset P((void)); -extern signed char initialRights[BOARD_SIZE]; -extern signed char castlingRights[MAX_MOVES][BOARD_SIZE]; +extern unsigned char initialRights[BOARD_FILES]; +extern signed char castlingRank[BOARD_FILES]; +