From bf4de0aab3f3c058144595d4292147e30c8bb4e1 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 17 Dec 2023 01:25:17 +0100 Subject: Moved SPACE_CHK() --- FICS/eco.c | 8 -------- FICS/eco.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/FICS/eco.c b/FICS/eco.c index 53d8c61..ea2e131 100644 --- a/FICS/eco.c +++ b/FICS/eco.c @@ -11,14 +11,6 @@ #include "playerdb.h" #include "utils.h" -#define SPACE_CHK()\ - do {\ - if (space > 0) {\ - FENstring[FENcount++] = (space + '0');\ - space = 0;\ - }\ - } while (0) - PUBLIC char *book_dir = DEFAULT_BOOK; ECO_entry *ECO_book[1096]; diff --git a/FICS/eco.h b/FICS/eco.h index 422eef2..45bd113 100644 --- a/FICS/eco.h +++ b/FICS/eco.h @@ -1,6 +1,14 @@ #ifndef _ECO_H #define _ECO_H +#define SPACE_CHK()\ + do {\ + if (space > 0) {\ + FENstring[FENcount++] = (space + '0');\ + space = 0;\ + }\ + } while (0) + typedef struct { char ECO[4]; char FENpos[80]; -- cgit v1.2.3