aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 0d7751c..a498185 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -42,9 +42,17 @@
#include "rmalloc.h"
#include "utils.h"
+/*
+ * This should be enough to hold any game up to at least 250 moves. If
+ * we overwrite this, the server will crash.
+ */
+#define GAME_STRING_LEN 16000
+
PUBLIC game *garray = NULL;
PUBLIC int g_num = 0;
+PRIVATE char gameString[GAME_STRING_LEN];
+
PRIVATE int get_empty_slot()
/* this method is awful! how about allocation as we need it and freeing
afterwards! */
@@ -444,12 +452,8 @@ PUBLIC char *EndSym(int g)
return (symbols[3]);
}
-/* This should be enough to hold any game up to at least 250 moves
- * If we overwrite this, the server will crash.
- */
-#define GAME_STRING_LEN 16000
-PRIVATE char gameString[GAME_STRING_LEN];
-PUBLIC char *movesToString(int g, int pgn)
+PUBLIC char *
+movesToString(int g, int pgn)
{
char tmp[160];
int wr, br;