diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
commit | c3eee8e333866d92e5fd94ae83cef618758c11bb (patch) | |
tree | 234a06fd90bd61a6668490a0cbf8870e6c674b81 /FICS/eco.h |
FICS RPBLC v1.4.61.4.6
Diffstat (limited to 'FICS/eco.h')
-rw-r--r-- | FICS/eco.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/FICS/eco.h b/FICS/eco.h new file mode 100644 index 0000000..c1ab418 --- /dev/null +++ b/FICS/eco.h @@ -0,0 +1,37 @@ +#ifndef _ECO_H +#define _ECO_H + +#include "command.h" /* param_list */ + +#define SPACE_CHK()\ + do {\ + if (space > 0) {\ + FENstring[FENcount++] = (space + '0');\ + space = 0;\ + }\ + } while (0) + +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(int); +extern char *getECO(int); +extern int com_eco(int, param_list); +extern void BookInit(void); +extern void ECO_init(void); +extern void LONG_init(void); +extern void NIC_init(void); + +#endif |