Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cmd.h « src « mgizapp - github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a314f412116d8e4a6eb26bfcb9fb1e3dbcd7b87a (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

// $Id: cmd.h 1307 2007-03-14 22:22:36Z hieuhoang1972 $

#if !defined(CMD_H)

#define	CMD_H

#define	CMDDOUBLETYPE	1
#define	CMDENUMTYPE	2
#define	CMDINTTYPE	3
#define	CMDSTRINGTYPE	4
#define	CMDSUBRANGETYPE	5
#define	CMDGTETYPE	6
#define	CMDLTETYPE	7
#define	CMDSTRARRAYTYPE	8
#define	CMDBOOLTYPE	9

typedef struct {
	const char *Name;
	int Idx;
} Enum_T;

typedef struct {
	int Type;
	const char *Name,
		   *ArgStr;
	void *Val,
	     *p;
} Cmd_T;

#ifdef  __cplusplus
extern "C" {
#endif

#if defined(__STDC__)  || defined(WIN32)
int DeclareParams(char *, ...);
#else

int DeclareParams();
#endif

int	GetParams(int *n, char ***a,char *CmdFileName),
	SPrintParams(),
	PrintParams();

#ifdef  __cplusplus
}
#endif
#endif