This entry point, used for parsing an ICS move list, was forgotten, and
was still an empty routine. This made XBoard crash when observing an ICS
game.
{ // Read one line from the input file, and append to the buffer\r
char c, *start = inPtr;\r
if(fromString) return 0; // parsing string, so the end is a hard end\r
+ if(!inputFile) return 0;\r
while((c = fgetc(inputFile)) != EOF) {\r
*inPtr++ = c;\r
if(c == '\n') { *inPtr = NULLCHAR; return 1; }\r
{ // prepare parse buffer for reading file\r
inputFile = f;\r
inPtr = parsePtr = inputBuf;\r
+ fromString = 0;\r
lastChar = '\n';\r
*inPtr = NULLCHAR; // make sure we will start by reading a line\r
}\r
\r
void yynewstr P((char *s))\r
{\r
+ parsePtr = s;\r
+ inputFile = NULL;\r
+ fromString = 1;\r
}\r
\r
int yylex()\r