5 #include <ctu_setup_api.h>
#define CT_PUREFN
mark a function as pure, always returns the same value for the same arguments
#define IN_NOTNULL
annotate a parameter as not being null
CT_SETUP_API setup_init_t setup_parse(int argc, const char **argv, setup_options_t setup)
parse the command line
CT_SETUP_API int setup_exit_help(setup_options_t setup, const setup_init_t *init)
print the help message and exit
CT_PUREFN CT_SETUP_API bool setup_should_exit(const setup_init_t *init)
accessor functions
CT_SETUP_API void setup_default(arena_t *arena)
initialise the runtime with default options
CT_SETUP_API setup_options_t setup_options(version_info_t info, cfg_group_t *root)
setup default options
CT_PUREFN CT_SETUP_API int setup_exit_code(const setup_init_t *init)
get the exit code
the result of parsing the command line
const colour_pallete_t * pallete
the chosen colour pallete
vector_t * posargs
the parsed position arguments
heading_style_t heading
the chosen heading style
default options shared by all tools
cfg_field_t * help
print help and quit
cfg_field_t * colour
enable colour output
cfg_field_t * header
report header style
struct setup_options_t::@170 report
diagnostic reporting options
struct setup_options_t::@169 general
general options
struct setup_options_t::@171 debug
debug options. these are for debugging the compiler itself, not the user code
cfg_field_t * version
print version and quit
cfg_field_t * verbose
enable verbose logging
a generic vector of pointers
version information for a driver/interface/plugin