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

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

// $Id$

#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;
  char	*Name,
        *ArgStr;
  void	*Val,
        *p;
} Cmd_T;

#ifdef  __cplusplus
extern "C" {
#endif

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

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

#ifdef  __cplusplus
}
#endif
#endif