tb Enable/disable command logging dynamically + setlogcmds builtin
This commit is contained in:
20
user/tb/config.h
Normal file
20
user/tb/config.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef TB_CONFIG_H_
|
||||
#define TB_CONFIG_H_
|
||||
typedef struct {
|
||||
char *modestr;
|
||||
enum {
|
||||
MODE_INTERACTIVE = 1,
|
||||
MODE_RUNFILE = 2,
|
||||
MODE_RUNSTRING = 3,
|
||||
} mode;
|
||||
|
||||
char *filepath;
|
||||
|
||||
bool logcmds;
|
||||
|
||||
char *runstring;
|
||||
} Config;
|
||||
|
||||
extern Config CONFIG;
|
||||
|
||||
#endif // TB_CONFIG_H_
|
||||
Reference in New Issue
Block a user