X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=typedef.h;h=f405a63f2c04d9736004f2ebcd583af85b3bf499;hb=99b227ec8c7dd8bb4116b643cc13ce39189195a0;hp=9f7f270e416fbecc5f3cc2b914366a98935365b1;hpb=4e0c88b473dffdefb830e6806c3692aab6b4fa0c;p=pgn-extract diff --git a/typedef.h b/typedef.h index 9f7f270..f405a63 100644 --- a/typedef.h +++ b/typedef.h @@ -33,7 +33,7 @@ * and en-passant notation. * UCI: UCI-compatible format - actually LALG. */ -typedef enum { SOURCE, SAN, EPD, CM, LALG, HALG, ELALG, UCI } OutputFormat; +typedef enum { SOURCE, SAN, EPD, CM, LALG, HALG, ELALG, UCI, SESSE_BIN } OutputFormat; /* Define a type to specify whether a move gives check, checkmate, * or nocheck. @@ -96,6 +96,11 @@ typedef struct move{ * has been played. */ char *epd; + /* Same as epd, but in our special binary packed format. + * Not zero-terminated, since it is binary. + */ + char *bpfen; + int bpfen_len; StringList *Nags; CommentList *Comment; /* terminating_result hold the result of the current list of moves. */