aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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