Functions
cmd_ignore()
#define cmd_ignore(c) (c->flags & CMD_IGNORE)
cmd_subst()
#define cmd_subst(c) (c->flags & CMD_SUBST)
cmd_nosub()
#define cmd_nosub(c) (c->flags & CMD_NOSUB)
function_state_init ()
void
function_state_init (CMD *cmd,
ExecState *state,
int *indent0);
gretl_exec_state_clear ()
void
gretl_exec_state_clear (ExecState *s);
gretl_exec_state_uncomment ()
void
gretl_exec_state_uncomment (ExecState *s);
gretl_exec_state_transcribe_flags ()
void
gretl_exec_state_transcribe_flags (ExecState *s,
CMD *cmd);
gretl_exec_state_set_model ()
void
gretl_exec_state_set_model (ExecState *s,
MODEL *pmod);
process_command_error ()
int
process_command_error (ExecState *s,
int err);
maybe_exec_line ()
int
maybe_exec_line (ExecState *s,
DATASET *dset,
int *loopstart);
plausible_genr_start ()
int
plausible_genr_start (const char *s,
const DATASET *dset);
Types and Values
cmd_token
typedef struct cmd_token_ cmd_token;
struct CMD_
struct CMD_ {
int ci; /* current command index */
int err; /* error code */
int context; /* for block commands, index of current context */
int ciflags; /* see CIFlags in tokenizer.c */
gretlopt opt; /* option(s) for command */
CmdFlags flags; /* status flags for command invocation */
GretlType gtype; /* specified type for "genr" */
int order; /* lag order, where appropriate */
int auxint; /* auxiliary int (e.g. VECM rank) */
int cstart; /* token index of start of 'real' command */
int ntoks; /* number of tokens actually used */
int nt_alloced; /* number of tokens allocated */
cmd_token *toks; /* tokens */
const char *vstart; /* pointer to where in line varargs or expr start */
char *param; /* basic parameter string */
char *parm2; /* second parameter string */
int *list; /* list of series and/or control integers */
int *auxlist; /* needed for "gappy" lag lists */
char savename[MAXSAVENAME]; /* for object-saving mechanism */
};
struct ExecState_
struct ExecState_ {
ExecFlags flags;
CMD *cmd;
PRN *prn;
char *line;
char runfile[MAXLEN];
MODEL *model; /* "workspace" model */
MODEL *pmod; /* set if new model is estimated */
equation_system *sys;
gretl_restriction *rset;
GRETL_VAR *var;
void *prev_model;
GretlObjType prev_type;
int prev_model_count;
char *submask; /* record of incoming sub-sample for functions */
int padded; /* record of incoming panel padding, if any */
int in_comment;
EXEC_CALLBACK callback;
};