X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=typedef.h;h=2f79308c7426d62d18d5729d6f80e6c29634f0d9;hb=2941984be26cee5bbb0757ed20172035ed06d2f4;hp=f405a63f2c04d9736004f2ebcd583af85b3bf499;hpb=99b227ec8c7dd8bb4116b643cc13ce39189195a0;p=pgn-extract diff --git a/typedef.h b/typedef.h index f405a63..2f79308 100644 --- a/typedef.h +++ b/typedef.h @@ -70,6 +70,9 @@ typedef struct variation{ */ #define MAX_MOVE_LEN 15 +struct EcoLog; +typedef struct EcoLog EcoLog; + /* Retain the text of a move and any associated * NAGs and comments. */ @@ -106,6 +109,7 @@ typedef struct move{ /* terminating_result hold the result of the current list of moves. */ char *terminating_result; Variation *Variants; + EcoLog *eco; /* Pointers to the previous and next move. * The extraction program does not need the prev field, but my * intention is to build other interfaces that might need it. @@ -263,6 +267,8 @@ typedef struct { Boolean output_total_plycount; /* Whether to add a HashCode tag. */ Boolean add_hashcode_tag; + /* Whether to dump ECO data to stdout after loading.*/ + Boolean dump_eco; /* The comment to use for position matches, if required. */ const char *position_match_comment; /* Current input file name. */