blob: c1ab41876c27cbcb8b8e4634cc6072e05c32f876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|