#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include "cmd.h"#include <varargs.h>Go to the source code of this file.
Defines | |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | LINSIZ 10240 |
| #define | MAXPARAM 256 |
| #define | PATHSEP '/' |
Functions | |
| static char *** | str2array () |
| static int | SetParam () |
| static int | SetEnum () |
| static int | SetSubrange () |
| static int | SetStrArray () |
| static int | SetGte () |
| static int | SetLte () |
| static int | CmdError () |
| static int | EnumError () |
| static int | SubrangeError () |
| static int | GteError () |
| static int | LteError () |
| static int | PrintParam () |
| static int | PrintEnum () |
| static int | PrintStrArray () |
| int | DeclareParams (char *ParName, va_alist) |
| int | GetParams (int *n, char ***a, char *CmdFileName) |
| int | PrintParams (int ValFlag, FILE *fp) |
| int | SPrintParams (char ***a, char *pfx) |
| #define LINSIZ 10240 |
| #define MAXPARAM 256 |
| #define PATHSEP '/' |
Referenced by GetParams().
| static int CmdError | ( | ) |
| int DeclareParams | ( | char * | ParName, | |
| va_alist | ||||
| ) |
Definition at line 70 of file cmd.c.
References CMDBOOLTYPE, CMDDOUBLETYPE, CMDENUMTYPE, CMDGTETYPE, CMDINTTYPE, CMDLTETYPE, CMDSTRARRAYTYPE, CMDSTRINGTYPE, CMDSUBRANGETYPE, MAXPARAM, Cmd_T::Name, NULL, Cmd_T::p, Cmd_T::Type, and Cmd_T::Val.
Referenced by main(), and mixture::mixture().

| static int EnumError | ( | ) |
| int GetParams | ( | int * | n, | |
| char *** | a, | |||
| char * | CmdFileName | |||
| ) |
Definition at line 144 of file cmd.c.
References CmdError(), LINSIZ, NULL, PATHSEP, pclose(), popen(), and Moses::Scan().
Referenced by main(), and mixture::mixture().


| static int GteError | ( | ) |
| static int LteError | ( | ) |
| static int PrintEnum | ( | ) |
| static int PrintParam | ( | ) |
| int PrintParams | ( | int | ValFlag, | |
| FILE * | fp | |||
| ) |
Definition at line 226 of file cmd.c.
References Cmd_T::Name, and PrintParam().

| static int PrintStrArray | ( | ) |
| static int SetEnum | ( | ) |
| static int SetGte | ( | ) |
| static int SetLte | ( | ) |
| static int SetParam | ( | ) |
| static int SetStrArray | ( | ) |
| static int SetSubrange | ( | ) |
| int SPrintParams | ( | char *** | a, | |
| char * | pfx | |||
| ) |
| static char* ** str2array | ( | ) |
| static int SubrangeError | ( | ) |
1.5.9