]> git.sesse.net Git - pgn-extract/blobdiff - typedef.h
Support scanning only a range of the file.
[pgn-extract] / typedef.h
index 65c93b59a1aa26934d4c536005b507f6ff9a7653..cf7be10005b34e242eee55463a6c315d63af1aae 100644 (file)
--- a/typedef.h
+++ b/typedef.h
@@ -279,6 +279,12 @@ typedef struct {
     const char *current_input_file;
     /* Whether this is a CHECKFILE or a NORMALFILE. */
     SourceFileType current_file_type;
+    /* 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;
     /* File of ECO lines. */
     const char *eco_file;
     /* Where to write the extracted games. */