34 lines
455 B
C
34 lines
455 B
C
|
|
#include <stdbool.h>
|
|
|
|
enum input_kind
|
|
{
|
|
ik_string,
|
|
ik_file,
|
|
ik_interactive,
|
|
};
|
|
|
|
struct cmdln_flags
|
|
{
|
|
bool echo;
|
|
|
|
bool print_with_colors;
|
|
|
|
enum input_kind input_kind;
|
|
|
|
bool read_init_file;
|
|
|
|
const char* init_path;
|
|
|
|
const char* input_string;
|
|
|
|
const char* input_file;
|
|
|
|
#ifndef RELEASE_BUILD
|
|
const char* test_interactive_using_input_file;
|
|
#endif
|
|
|
|
char* const* argv;
|
|
};
|
|
|
|
|