Cthulhu  0.2.10
Cthulhu compiler collection
common.c File Reference
#include "common.h"
#include "base/panic.h"
#include "config/config.h"
#include "core/macros.h"
#include "arena/arena.h"
#include "scan/scan.h"
#include "std/map.h"
#include "std/vector.h"
#include "std/str.h"
Include dependency graph for common.c:

Go to the source code of this file.

Functions

void ap_add_error (ap_t *self, const char *fmt,...)
 
void ap_on_string (scan_t *scan, cfg_field_t *param, char *value)
 
void ap_on_bool (scan_t *scan, cfg_field_t *param, bool value)
 
void ap_on_int (scan_t *scan, cfg_field_t *param, mpz_t value)
 
void ap_on_posarg (scan_t *scan, char *value)
 
void ap_on_invalid (scan_t *scan, char *value)
 
void aperror (where_t *where, void *state, scan_t *scan, const char *msg)
 

Function Documentation

◆ ap_add_error()

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

Definition at line 37 of file common.c.

◆ ap_on_bool()

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

Definition at line 122 of file common.c.

◆ ap_on_int()

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()

void ap_on_invalid ( scan_t scan,
char *  value 
)

Definition at line 157 of file common.c.

◆ ap_on_posarg()

void ap_on_posarg ( scan_t scan,
char *  value 
)

Definition at line 150 of file common.c.

◆ ap_on_string()

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

Definition at line 90 of file common.c.

◆ aperror()

void aperror ( where_t where,
void *  state,
scan_t scan,
const char *  msg 
)

Definition at line 164 of file common.c.