114 while (isspace(c = fgetc(stream))); |
114 while (isspace(c = fgetc(stream))); |
115 i = 0; |
115 i = 0; |
116 do { |
116 do { |
117 movestr[i++] = c; |
117 movestr[i++] = c; |
118 if (i >= 10) { |
118 if (i >= 10) { |
119 return 1; |
119 return pgn_error_move_syntax; |
120 } |
120 } |
121 } while (!isspace(c = fgetc(stream))); |
121 } while (!isspace(c = fgetc(stream))); |
122 movestr[i] = '\0'; |
122 movestr[i] = '\0'; |
123 if (eval_move(gamestate, movestr, &move, curcol) |
123 if (eval_move(gamestate, movestr, &move, curcol) |
124 != VALID_MOVE_SYNTAX) { |
124 != VALID_MOVE_SYNTAX) { |