Cthulhu  0.2.10
Cthulhu compiler collection
context.c File Reference
#include "cthulhu/broker/scan.h"
#include "cthulhu/events/events.h"
#include "scan/node.h"
#include "scan/scan.h"
#include "std/vector.h"
#include "core/macros.h"
Include dependency graph for context.c:

Go to the source code of this file.

Functions

logger_tctx_get_logger (const scan_t *scan)
 
arena_tctx_get_arena (const scan_t *scan)
 
arena_tctx_get_string_arena (const scan_t *scan)
 
arena_tctx_get_ast_arena (const scan_t *scan)
 
vector_tctx_vector_init (void *init, const scan_t *scan)
 
vector_tctx_vector_new (size_t size, const scan_t *scan)
 
vector_tctx_vector_of (size_t size, const scan_t *scan)
 
void * ctx_get_user (const scan_t *scan)
 
void ctx_error (const where_t *where, const void *state, const scan_t *scan, const char *msg)
 
void ctx_unknown_symbol (const scan_t *scan, const where_t *where, const char *msg)
 

Function Documentation

◆ ctx_error()

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

Definition at line 59 of file context.c.

◆ ctx_get_arena()

arena_t* ctx_get_arena ( const scan_t scan)

Definition at line 20 of file context.c.

◆ ctx_get_ast_arena()

arena_t* ctx_get_ast_arena ( const scan_t scan)

Definition at line 32 of file context.c.

◆ ctx_get_logger()

logger_t* ctx_get_logger ( const scan_t scan)

Definition at line 14 of file context.c.

◆ ctx_get_string_arena()

arena_t* ctx_get_string_arena ( const scan_t scan)

Definition at line 26 of file context.c.

◆ ctx_get_user()

void* ctx_get_user ( const scan_t scan)

Definition at line 53 of file context.c.

◆ ctx_unknown_symbol()

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

Definition at line 69 of file context.c.

◆ ctx_vector_init()

vector_t* ctx_vector_init ( void *  init,
const scan_t scan 
)

Definition at line 38 of file context.c.

◆ ctx_vector_new()

vector_t* ctx_vector_new ( size_t  size,
const scan_t scan 
)

Definition at line 43 of file context.c.

◆ ctx_vector_of()

vector_t* ctx_vector_of ( size_t  size,
const scan_t scan 
)

Definition at line 48 of file context.c.