aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/variable.h
blob: 41e5a670410d8ae710600a9fab1660671821f937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 */