/usr/include/gretl/interact.h is in libgretl1-dev 2016a-1.
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 | /*
* 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/>.
*
*/
/* interact.h for gretl */
#ifndef INTERACT_H
#define INTERACT_H
#define MAXSAVENAME 32
#define CMD_NULL -1
#define CMD_COMMENT -2
#define CMD_MASKED -3
typedef struct CMD_ CMD;
typedef struct ExecState_ ExecState;
typedef enum {
OPT_BATCH = 1 << 0,
OPT_HELP = 1 << 1,
OPT_VERSION = 1 << 2,
OPT_RUNIT = 1 << 3,
OPT_DBOPEN = 1 << 4,
OPT_WEBDB = 1 << 5,
OPT_FNPKG = 1 << 6,
OPT_DUMP = 1 << 7,
OPT_DEBUG = 1 << 8,
OPT_QUIET = 1 << 9,
OPT_ENGLISH = 1 << 10,
OPT_BASQUE = 1 << 11,
OPT_MAKEPKG = 1 << 12,
OPT_INSTPKG = 1 << 13,
OPT_TOOL = 1 << 14
} ProgramOptions;
typedef enum {
CONSOLE_EXEC = 1 << 0,
SCRIPT_EXEC = 1 << 1,
INCLUDE_EXEC = 1 << 2,
FUNCTION_EXEC = 1 << 3,
DEBUG_EXEC = 1 << 4,
CALLBACK_EXEC = 1 << 5,
INIT_EXEC = 1 << 6
} ExecFlags;
#define HIDDEN_COMMAND(c) (c == FUNCERR || c == FUNCRET)
/* functions follow */
int gretl_cmd_init (CMD *cmd);
void gretl_cmd_free (CMD *cmd);
CMD *gretl_cmd_new (void);
void gretl_cmd_destroy (CMD *cmd);
void gretl_cmd_set_context (CMD *cmd, int ci);
void gretl_cmd_destroy_context (CMD *cmd);
const char *gretl_cmd_get_savename (CMD *cmd);
gretlopt gretl_cmd_get_opt (const CMD *cmd);
void gretl_cmd_set_opt (CMD *cmd, gretlopt opt);
int parse_command_line (char *line, CMD *cmd, DATASET *dset,
void *ptr);
int parse_gui_command (const char *line, CMD *cmd,
DATASET *dset);
const char *get_parser_errline (void);
int get_command_index (char *line, CMD *cmd);
int command_number (const char *cmd);
void gretl_echo_command (CMD *cmd, const char *line, PRN *prn);
void gretl_record_command (CMD *cmd, const char *line, PRN *prn);
void safe_print_line (const char *line, int *plen, PRN *prn);
int gretl_cmd_exec (ExecState *s, DATASET *dset);
int call_pca_plugin (VMatrix *cmat, DATASET *dset,
gretlopt opt, PRN *prn);
int gretl_shell_grab (const char *arg, char **sout);
int is_plotting_command (CMD *cmd);
void set_plot_produced (void);
int gretl_delete_variables (int *list,
const char *param,
gretlopt opt,
DATASET *dset,
int *renumber,
PRN *prn);
#endif /* INTERACT_H */
|