| Top |
| gretlopt | opt_from_flag () |
| const char * | print_flags () |
| const char ** | get_opts_for_command () |
| int | set_options_for_command () |
| void | maybe_get_stored_options () |
| int | check_for_loop_only_options () |
| int | cluster_option_ok () |
| int | matrix_data_option () |
| char ** | get_all_option_strings () |
| gretlopt | transcribe_option_flags () |
| gretlopt | delete_option_flags () |
| int | incompatible_options () |
| int | option_prereq_missing () |
| int | inapplicable_option_error () |
| int | push_option_param () |
| double | get_optval_double () |
| int | set_optval_double () |
| const char * | get_optval_string () |
| int | set_optval_string () |
| int | set_optval_int () |
| int | get_optval_int () |
| int | get_compression_option () |
| void | destroy_option_params_at_level () |
| void | clear_stored_options_for_command () |
| void | stored_options_cleanup () |
| void | setopt_cleanup () |
| void | option_printing_cleanup () |
| gretlopt | valid_long_opt () |
| gretlopt | valid_short_opt () |
| void | debug_print_option_flags () |
int set_options_for_command (const char *cmdword,const char *param,gretlopt opt);
gretlopt transcribe_option_flags (gretlopt *targ,gretlopt src,gretlopt test);
gretlopt delete_option_flags (gretlopt *targ,gretlopt test);
If the intersection of the flags in targ
and test
is non-
empty, unset the corresponding flags in targ
.
int incompatible_options (gretlopt opt,gretlopt test);
int option_prereq_missing (gretlopt opt,gretlopt test,gretlopt prereq);
opt |
option flags to be tested. |
|
test |
bitwise OR of flags that have a deinite prequisite. |
|
prereq |
bitwise OR of prequisite flags. |
E_BADOPT if opt
contains at least one element of
test
but no elements of prereq
, otherwise 0.
int inapplicable_option_error (int ci,gretlopt opt);
Flags an error: to be used when opt
is not applicable
for command ci
, in context.
int push_option_param (int ci,gretlopt opt,char *val);
Pushes onto an internal stack a record of the val
to be associated with opt
for the current ci
. Note
that the command option apparatus takes ownership of
val
, so the value passed in should be copied if need
be.
double get_optval_double (int ci,gretlopt opt,int *err);
the double-precision ancillary value currently
associated with option opt
for command ci
, if any,
otherwise NADBL. If opt
is an active option for
ci
but the parameter for this option cannot be
interpreted as a numerical value, E_INVARG is written
into err
.
int set_optval_double (int ci,gretlopt opt,double x);
Sets a double-precision ancillary value to be associated
with option opt
for command ci
.
int set_optval_string (int ci,gretlopt opt,const char *s);
Sets a ancillary string value to be associated
with option opt
for command ci
.
int set_optval_int (int ci,gretlopt opt,int k);
Sets a integer ancillary value to be associated
with option opt
for command ci
.
void
clear_stored_options_for_command (int ci);
Clears any (non-persistent) option information currently associated with the given command, identified by its index.