diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
commit | c3eee8e333866d92e5fd94ae83cef618758c11bb (patch) | |
tree | 234a06fd90bd61a6668490a0cbf8870e6c674b81 /FICS/variable.h |
FICS RPBLC v1.4.61.4.6
Diffstat (limited to 'FICS/variable.h')
-rw-r--r-- | FICS/variable.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/FICS/variable.h b/FICS/variable.h new file mode 100644 index 0000000..ced7878 --- /dev/null +++ b/FICS/variable.h @@ -0,0 +1,55 @@ +/* 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 + Markus Uhlin 24/04/01 Revised + Markus Uhlin 24/11/24 Added begin/end decls +*/ + +#ifndef _VARIABLE_H +#define _VARIABLE_H + +#include "common.h" + +#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 + +typedef struct _var_list { + char *name; + int (*var_func)(int, char *, char *); +} var_list; + +__FICS_BEGIN_DECLS +extern var_list variables[]; + +extern const char *Language(unsigned int); +extern int var_set(int, char *, char *, int *); +__FICS_END_DECLS + +#endif /* _VARIABLE_H */ |