if(!GlobalState.skipping_current_game) {
fprintf(GlobalState.logfile,"Missing closing quote in %s\n",line);
}
- if(len != 1){
+ if(len > 1){
/* Move back to the null. */
linep--;
str[len-1] = '\0';
}
}
+ /* Return the position in the current file. Returns -1 if it is unseekable. */
+long get_position(void)
+{
+ return ftell(yyin);
+}