X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=typedef.h;h=93978bdb5bd11dab4e3b1698dab334ab41dac9de;hb=HEAD;hp=65c93b59a1aa26934d4c536005b507f6ff9a7653;hpb=24340f183eef0351ac9b6cfc0aa3d9c1672893b6;p=pgn-extract diff --git a/typedef.h b/typedef.h index 65c93b5..93978bd 100644 --- a/typedef.h +++ b/typedef.h @@ -146,6 +146,8 @@ typedef struct { * 0 => no error found. */ int error_ply; + /* File number this game comes from. */ + int file_number; /* File position of the first byte of the game, or -1 * if unknown. */ @@ -279,6 +281,18 @@ typedef struct { const char *current_input_file; /* Whether this is a CHECKFILE or a NORMALFILE. */ SourceFileType current_file_type; + /* Current file number. Used to disambiguate PGN file positions. */ + int current_file_number; + int start_file_number; + /* Byte positions to scan to and from in the PGN file. + * Starting in the middle of a game will yield unexpected + * results. + */ + long start_position; + long end_position; + /* Whether the games are assumed played by computers. + * Passed through verbatim to the binary format. */ + int computer_flag; /* File of ECO lines. */ const char *eco_file; /* Where to write the extracted games. */