Allow arbitrary nesting of sub-variations in PGN input
[xboard.git] / parser.h
index 3a13884..fe105b2 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -53,8 +53,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