Cthulhu  0.2.10
Cthulhu compiler collection
setup.h File Reference
#include <ctu_setup_api.h>
#include "core/analyze.h"
#include "core/version_def.h"
#include "format/format.h"
#include <stdbool.h>
Include dependency graph for setup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  setup_options_t
 default options shared by all tools More...
 
struct  setup_init_t
 the result of parsing the command line More...
 

Functions

CT_SETUP_API void setup_default (arena_t *arena)
 initialise the runtime with default options More...
 
CT_SETUP_API setup_options_t setup_options (version_info_t info, cfg_group_t *root)
 setup default options More...
 
CT_SETUP_API setup_init_t setup_parse (int argc, const char **argv, setup_options_t setup)
 parse the command line More...
 
CT_PUREFN CT_SETUP_API bool setup_should_exit (const setup_init_t *init)
 accessor functions More...
 
CT_PUREFN CT_SETUP_API int setup_exit_code (const setup_init_t *init)
 get the exit code More...
 
CT_SETUP_API int setup_exit_help (setup_options_t setup, const setup_init_t *init)
 print the help message and exit More...