/usr/include/gretl/libset.h is in libgretl1-dev 1.9.6-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | /*
* gretl -- Gnu Regression, Econometrics and Time-series Library
* Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef LIBSET_H
#define LIBSET_H
typedef enum {
NORM_PHILLIPS,
NORM_DIAG,
NORM_FIRST,
NORM_NONE,
NORM_MAX
} VECMnorm;
typedef enum {
OPTIM_AUTO,
OPTIM_BFGS,
OPTIM_NEWTON,
OPTIM_MAX
} OptimCode;
/* guard against consequences of typos */
#define BFGS_MAXITER "bfgs_maxiter"
#define BFGS_TOLER "bfgs_toler"
#define BFGS_MAXGRAD "bfgs_maxgrad"
#define BFGS_VERBSKIP "bfgs_verbskip"
#define BFGS_RSTEP "bfgs_richardson"
#define BHHH_MAXITER "bhhh_maxiter"
#define BHHH_TOLER "bhhh_toler"
#define LBFGS_MEM "lbfgs_mem"
#define BOOTREP "bootrep"
#define FORCE_DECP "force_decpoint"
#define FORCE_HC "force_hc"
#define GARCH_VCV "garch_vcv"
#define GARCH_ROBUST_VCV "garch_robust_vcv"
#define HAC_KERNEL "hac_kernel"
#define HAC_LAG "hac_lag"
#define HALT_ON_ERR "halt_on_error"
#define HC_VERSION "hc_version"
#define HORIZON "horizon"
#define USE_LBFGS "lbfgs"
#define LOOP_MAXITER "loop_maxiter"
#define RQ_MAXITER "rq_maxiter"
#define MAX_VERBOSE "max_verbose"
#define NLS_TOLER "nls_toler"
#define PCSE "pcse"
#define PREWHITEN "hac_prewhiten"
#define QS_BANDWIDTH "qs_bandwidth"
#define SHELL_OK "shell_ok"
#define USE_CWD "use_cwd"
#define USE_SVD "svd"
#define USE_FCP "fcp"
#define VECM_NORM "vecm_norm"
#define GRETL_OPTIM "optimizer"
#define ARMA_VCV "arma_vcv"
#define SKIP_MISSING "skip_missing"
#define R_FUNCTIONS "R_functions"
#define R_LIB "R_lib"
#define NORMAL_RAND "normal_rand"
#define RNG "RNG"
#define DPDSTYLE "dpdstyle"
#define GMM_MAXITER "gmm_maxiter"
#define CSV_DIGITS "csv_digits"
#define NADARWAT_TRIM "nadarwat_trim"
typedef int (*ITER_PRINT_FUNC) (int, PRN *);
typedef void (*SHOW_ACTIVITY_FUNC) (void);
typedef int (*DEBUG_READLINE) (void *);
typedef int (*DEBUG_OUTPUT) (void *);
typedef int (*QUERY_STOP) (void);
#define set_nls_toler(x) (libset_set_double(NLS_TOLER, x))
int libset_init (void);
void libset_cleanup (void);
int libset_restore_state_zero (DATASET *dset);
int push_program_state (void);
int pop_program_state (void);
int libset_get_bool (const char *key);
int libset_set_bool (const char *key, int val);
double libset_get_double (const char *key);
int libset_set_double (const char *key, double val);
double libset_get_user_tolerance (const char *key);
int libset_get_int (const char *key);
int libset_set_int (const char *key, int val);
int is_libset_var (const char *s);
/* GUI setter functions */
void set_xsect_hccme (const char *s);
void set_tseries_hccme (const char *s);
void set_panel_hccme (const char *s);
void set_garch_robust_vcv (const char *s);
int get_hac_lag (int T);
int data_based_hac_bandwidth (void);
int get_bkbp_k (const DATASET *dset);
void get_bkbp_periods (const DATASET *dset, int *l, int *u);
void set_mp_bits (int b);
int get_mp_bits (void);
const gretl_matrix *get_init_vals (void);
int n_init_vals (void);
void free_init_vals (void);
const gretl_matrix *get_matrix_mask (void);
int get_matrix_mask_nobs (void);
void destroy_matrix_mask (void);
void set_loop_on (int quiet, int progressive);
void set_loop_off (void);
int gretl_looping (void);
int gretl_looping_currently (void);
int gretl_looping_quietly (void);
int gretl_looping_progressive (void);
void gretl_set_batch_mode (int b);
int gretl_in_batch_mode (void);
void gretl_set_gui_mode (int g);
int gretl_in_gui_mode (void);
void set_gretl_echo (int e);
int gretl_echo_on (void);
void set_gretl_messages (int e);
int gretl_messages_on (void);
int gretl_warnings_on (void);
int gretl_debugging_on (void);
void shelldir_init (const char *s);
char *get_shelldir (void);
char get_csv_delim (const DATASET *dset);
const char *get_csv_na_string (void);
void set_csv_na_string (const char *s);
int execute_set_line (const char *line, DATASET *dset,
gretlopt opt, PRN *prn);
void set_iter_print_func (ITER_PRINT_FUNC func);
int iter_print_callback (int i, PRN *prn);
int iter_print_func_installed (void);
void set_show_activity_func (SHOW_ACTIVITY_FUNC func);
void show_activity_callback (void);
int show_activity_func_installed (void);
void set_debug_read_func (DEBUG_READLINE dfunc);
DEBUG_READLINE get_debug_read_func (void);
void set_debug_output_func (DEBUG_OUTPUT dout);
DEBUG_OUTPUT get_debug_output_func (void);
void set_query_stop_func (QUERY_STOP query);
int check_for_stop (void);
void set_workdir_callback (int (*callback)());
int libset_write_script (const char *fname);
int libset_read_script (const char *fname);
#endif /* LIBSET_H */
|