diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 23:45:52 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 23:45:52 +0100 |
commit | c4094e9530d9d0769309a895fcf046c94680a8de (patch) | |
tree | 0c7e037d9a653499688eb05fd65c50e9fc459924 | |
parent | 26841893440b07756fd1dcb05975383d75bbc8dc (diff) |
Defined and made use of 'FENPOS_SIZE' and 'ONMOVE_SIZE'
-rw-r--r-- | FICS/eco.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -21,6 +21,9 @@ #include <bsd/string.h> #endif +#define FENPOS_SIZE 73 +#define ONMOVE_SIZE 2 + PRIVATE char *book_dir = DEFAULT_BOOK; PRIVATE ECO_entry *ECO_book[1096]; @@ -121,9 +124,9 @@ ECO_init(void) { FILE *fp; char ECO[4] = {0,0,0,0}; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -180,10 +183,10 @@ PUBLIC void NIC_init(void) { FILE *fp; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char NIC[6] = {0,0,0,0,0,0}; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -232,10 +235,10 @@ PUBLIC void LONG_init(void) { FILE *fp; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char LONG[256] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; |