aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-13 23:49:07 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-13 23:49:07 +0100
commit56a2578988737fada97995a606b99f2cd87e52c7 (patch)
tree560359ed2c1a311fbf4beaab557f5e0ceebc9128 /FICS
parent66d2a91451739d81a59549a6fc7932be04b4b93f (diff)
Moved definitions to a header file
Diffstat (limited to 'FICS')
-rw-r--r--FICS/makerank.c16
-rw-r--r--FICS/makerank.h15
2 files changed, 18 insertions, 13 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c
index dc6ba7f..4bdba63 100644
--- a/FICS/makerank.c
+++ b/FICS/makerank.c
@@ -5,26 +5,16 @@
#include <string.h>
#include "config.h"
+#include "makerank.h"
#define COMPUTER_FILE DEFAULT_LISTS "/computer"
#define MAX_LOGIN_NAME 21
-char *rnames[] = {"std", "blitz", "wild", "lightning"};
-
-typedef struct _ratings {
- int rating;
- int num;
-} ratings;
-
-typedef struct _Entry {
- char name[MAX_LOGIN_NAME];
- ratings r[4];
- int computer;
-} ENTRY;
-
ENTRY **list;
ENTRY **sortme;
+char *rnames[] = {"std", "blitz", "wild", "lightning"};
+
static int
GetPlayerInfo(char *fileName, ENTRY *e)
{
diff --git a/FICS/makerank.h b/FICS/makerank.h
new file mode 100644
index 0000000..49fe563
--- /dev/null
+++ b/FICS/makerank.h
@@ -0,0 +1,15 @@
+#ifndef MAKERANK_H
+#define MAKERANK_H
+
+typedef struct _Entry {
+ char name[MAX_LOGIN_NAME];
+ int computer;
+ ratings r[4];
+} ENTRY;
+
+typedef struct _ratings {
+ int num;
+ int rating;
+} ratings;
+
+#endif