diff options
-rw-r--r-- | FICS/eco.c | 16 | ||||
-rw-r--r-- | FICS/eco.h | 15 |
2 files changed, 16 insertions, 15 deletions
@@ -4,6 +4,7 @@ #include "command.h" #include "common.h" #include "config.h" +#include "eco.h" #include "gamedb.h" #include "gameproc.h" #include "obsproc.h" @@ -12,21 +13,6 @@ PUBLIC char *book_dir = DEFAULT_BOOK; -typedef struct { - char ECO[4]; - char FENpos[80]; -} ECO_entry; - -typedef struct { - char NIC[6]; - char FENpos[80]; -} NIC_entry; - -typedef struct { - char LONG[80]; - char FENpos[80]; -} LONG_entry; - ECO_entry *ECO_book[1096]; NIC_entry *NIC_book[1096]; LONG_entry *LONG_book[4096]; @@ -1,6 +1,21 @@ #ifndef _ECO_H #define _ECO_H +typedef struct { + char ECO[4]; + char FENpos[80]; +} ECO_entry; + +typedef struct { + char NIC[6]; + char FENpos[80]; +} NIC_entry; + +typedef struct { + char LONG[80]; + char FENpos[80]; +} LONG_entry; + extern char *boardToFEN(); extern char *getECO(); extern int com_eco(); |