]> git.sesse.net Git - pgn-extract/blobdiff - typedef.h
Add support for outputting positions in my own bit-packed FEN format.
[pgn-extract] / typedef.h
index 9f7f270e416fbecc5f3cc2b914366a98935365b1..f405a63f2c04d9736004f2ebcd583af85b3bf499 100644 (file)
--- 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. */