diff -r 6cc15ba51424 -r ea2448961441 src/chess/pgn.h --- a/src/chess/pgn.h Sat Jul 18 22:00:49 2026 +0200 +++ b/src/chess/pgn.h Sun Jul 19 17:13:16 2026 +0200 @@ -37,7 +37,20 @@ #ifdef __cplusplus extern "C" { #endif - + +enum { + pgn_no_error = 0, + pgn_error_missing_quote, + pgn_error_missing_bracket, + pgn_error_missing_brace, + pgn_error_missing_dot, + pgn_error_move_syntax, + pgn_error_move_semantics, + pgn_error_result_syntax, + pgn_error_result_mismatch, + pgn_error_unexpected_eof, +}; + int read_pgn(FILE *stream, GameState *gamestate); int parse_pgn(const char *data, GameState *gamestate); void write_pgn(FILE* stream, GameState *gamestate, bool export_comments);