Cthulhu  0.2.10
Cthulhu compiler collection
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
common.h File Reference
#include "argparse/argparse.h"
#include "config/config.h"
#include "core/analyze.h"
#include <gmp.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ap_callback_t
 
struct  ap_t
 argparse instance More...
 
struct  ap_field_t
 

Macros

#define APLTYPE   where_t
 

Functions

CT_ARGPARSE_API int ap_parse_common (ap_t *self, const char *text)
 
CT_ARGPARSE_API void ap_on_string (scan_t *scan, cfg_field_t *param, char *value)
 
CT_ARGPARSE_API void ap_on_bool (scan_t *scan, cfg_field_t *param, bool value)
 
CT_ARGPARSE_API void ap_on_int (scan_t *scan, cfg_field_t *param, mpz_t value)
 
CT_ARGPARSE_API void ap_on_posarg (scan_t *scan, char *value)
 
CT_ARGPARSE_API void ap_add_error (ap_t *self, const char *fmt,...)
 
CT_ARGPARSE_API void ap_on_invalid (scan_t *scan, char *value)
 
CT_ARGPARSE_API int ap_get_opt (scan_t *scan, const char *name, ap_field_t *param, char **value)
 

Macro Definition Documentation

◆ APLTYPE

#define APLTYPE   where_t

Definition at line 12 of file common.h.

Function Documentation

◆ ap_add_error()

CT_ARGPARSE_API void ap_add_error ( ap_t self,
const char *  fmt,
  ... 
)

Definition at line 37 of file common.c.

◆ ap_get_opt()

CT_ARGPARSE_API int ap_get_opt ( scan_t scan,
const char *  name,
ap_field_t param,
char **  value 
)

Definition at line 153 of file parse.c.

◆ ap_on_bool()

CT_ARGPARSE_API void ap_on_bool ( scan_t scan,
cfg_field_t param,
bool  value 
)

Definition at line 122 of file common.c.

◆ ap_on_int()

CT_ARGPARSE_API void ap_on_int ( scan_t scan,
cfg_field_t param,
mpz_t  value 
)

Definition at line 133 of file common.c.

◆ ap_on_invalid()

CT_ARGPARSE_API void ap_on_invalid ( scan_t scan,
char *  value 
)

Definition at line 157 of file common.c.

◆ ap_on_posarg()

CT_ARGPARSE_API void ap_on_posarg ( scan_t scan,
char *  value 
)

Definition at line 150 of file common.c.

◆ ap_on_string()

CT_ARGPARSE_API void ap_on_string ( scan_t scan,
cfg_field_t param,
char *  value 
)

Definition at line 90 of file common.c.

◆ ap_parse_common()

CT_ARGPARSE_API int ap_parse_common ( ap_t self,
const char *  text 
)

Definition at line 86 of file parse.c.