Fix bug in setting up w3 and w4 games
[capablanca.git] / lasker-2.2.3 / src / variable.h
1 /*
2    Copyright (c) 1993 Richard V. Nash.
3    Copyright (c) 2000 Dan Papasian
4    Copyright (C) Andrew Tridgell 2002
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 /* Revision history:
22    name         email           yy/mm/dd        Change
23    Richard Nash                 93/10/22        Created
24 */
25
26 #ifndef VARIABLE_H
27 #define VARIABLE_H
28
29 typedef struct var_list {
30   char *name;
31   int (*var_func)();
32 } var_list;
33
34 #define VAR_OK 0
35 #define VAR_NOSUCH 1
36 #define VAR_BADVAL 2
37 #define VAR_AMBIGUOUS 3
38
39 #define LANG_ENGLISH 0
40 #define LANG_SPANISH 1
41 #define LANG_FRENCH 2
42 #define LANG_DANISH 3
43 #define NUM_LANGS 4
44
45 extern var_list variables[];
46
47 #endif /* VARIABLE_H */