aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/variable.h
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-07 21:31:49 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-07 21:31:49 +0100
commit79b59f9b30fb6a1fdf8c3efb446271f7cb00d434 (patch)
treef6ade4ccbc3af20d825edacfd12b5da8ded8d240 /FICS/variable.h
FICS 1.6.2
Diffstat (limited to 'FICS/variable.h')
-rw-r--r--FICS/variable.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/FICS/variable.h b/FICS/variable.h
new file mode 100644
index 0000000..41e5a67
--- /dev/null
+++ b/FICS/variable.h
@@ -0,0 +1,56 @@
+/* variable.h
+ *
+ */
+
+/*
+ fics - An internet chess server.
+ Copyright (C) 1993 Richard V. Nash
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+*/
+
+/* Revision history:
+ name email yy/mm/dd Change
+ Richard Nash 93/10/22 Created
+*/
+
+#ifndef _VARIABLE_H
+#define _VARIABLE_H
+
+typedef struct _var_list {
+ char *name;
+ int (*var_func)();
+} var_list;
+
+#define VAR_OK 0
+#define VAR_NOSUCH 1
+#define VAR_BADVAL 2
+#define VAR_AMBIGUOUS 3
+
+#define LANG_ENGLISH 0
+#define LANG_SPANISH 1
+#define LANG_FRENCH 2
+#define LANG_DANISH 3
+#define NUM_LANGS 4
+
+extern int var_set(int, char *, char *, int *);
+extern int com_time();
+extern int com_inc();
+extern int com_height();
+extern int com_width();
+extern int com_partner();
+extern char *Language();
+
+extern var_list variables[];
+
+extern int com_variables();
+
+#endif /* _VARIABLE_H */