| 137 c = fgetc(stream); |
137 c = fgetc(stream); |
| 138 } while (c != '}' && c != EOF); |
138 } while (c != '}' && c != EOF); |
| 139 if (c == EOF) { |
139 if (c == EOF) { |
| 140 return pgn_error_missing_brace; |
140 return pgn_error_missing_brace; |
| 141 } |
141 } |
| 142 } |
142 /* skip spaces */ |
| 143 |
143 while (isspace(c = fgetc(stream))); |
| 144 /* skip spaces */ |
144 } |
| 145 while (isspace(c = fgetc(stream))); |
|
| 146 |
145 |
| 147 /* end of game data encountered */ |
146 /* end of game data encountered */ |
| 148 if (c == EOF) { |
147 if (c == EOF) { |
| 149 break; |
148 break; |
| 150 } |
149 } |