]> git.sesse.net Git - pgn-extract/blobdiff - main.c
Support scanning only a range of the file.
[pgn-extract] / main.c
diff --git a/main.c b/main.c
index 5439f117db42d4a9b42ee2ffe18267da3fa6d573..ec4df57cdf0e356223ab6ab49746762a21d87fc9 100644 (file)
--- a/main.c
+++ b/main.c
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <limits.h>
 #include "bool.h"
 #include "mymalloc.h"
 #include "defs.h"
@@ -102,9 +103,12 @@ StateInfo GlobalState = {
     FALSE,                /* add_position_match_comments (--markmatches) */
     FALSE,                /* output_total_plycount (--totalplycount) */
     FALSE,                /* add_hashcode_tag (--addhashcode) */
+    FALSE,                /* dump-eco (--dumpeco) */
     "MATCH",             /* position_match_comment (--markpositionmatches) */
     (char *)NULL,         /* current_input_file */
     NORMALFILE,           /* current_file_type */
+    0,                    /* start_position */
+    LONG_MAX,             /* end_position */
     DEFAULT_ECO_FILE,     /* eco_file (-e) */
     (FILE *)NULL,         /* outputfile (-o, -a). Default is stdout */
     (char *)NULL,         /* output_filename (-o, -a) */