irstlm/src/cmd.c File Reference

#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 Documentation

#define FALSE   0

Definition at line 38 of file cmd.c.

#define LINSIZ   10240

Definition at line 41 of file cmd.c.

Referenced by GetParams().

#define MAXPARAM   256

Definition at line 42 of file cmd.c.

Referenced by DeclareParams().

#define PATHSEP   '/'

Referenced by GetParams().

#define TRUE   1

Definition at line 39 of file cmd.c.


Function Documentation

static int CmdError (  ) 

Referenced by GetParams().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int GteError (  ) 

static int LteError (  ) 

static int PrintEnum (  ) 

static int PrintParam (  ) 

Referenced by PrintParams().

Here is the caller graph for this function:

int PrintParams ( int  ValFlag,
FILE *  fp 
)

Definition at line 226 of file cmd.c.

References Cmd_T::Name, and PrintParam().

Here is the call graph for this function:

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 
)

Definition at line 244 of file cmd.c.

References Cmd_T::ArgStr, and Cmd_T::Name.

static char* ** str2array (  ) 

static int SubrangeError (  ) 


Generated on Fri Apr 15 13:04:15 2011 for Moses by  doxygen 1.5.9