Cthulhu  0.2.10
Cthulhu compiler collection
scan.h File Reference
#include <ctu_broker_api.h>
#include <stddef.h>
Include dependency graph for scan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  scan_context_t
 

Functions

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

Function Documentation

◆ ctx_error()

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

CT_BROKER_API arena_t* ctx_get_arena ( const scan_t scan)

Definition at line 20 of file context.c.

◆ ctx_get_ast_arena()

CT_BROKER_API arena_t* ctx_get_ast_arena ( const scan_t scan)

Definition at line 32 of file context.c.

◆ ctx_get_logger()

CT_BROKER_API logger_t* ctx_get_logger ( const scan_t scan)

Definition at line 14 of file context.c.

◆ ctx_get_string_arena()

CT_BROKER_API arena_t* ctx_get_string_arena ( const scan_t scan)

Definition at line 26 of file context.c.

◆ ctx_get_user()

CT_BROKER_API void* ctx_get_user ( const scan_t scan)

Definition at line 53 of file context.c.

◆ ctx_unknown_symbol()

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

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

Definition at line 38 of file context.c.

◆ ctx_vector_new()

CT_BROKER_API vector_t* ctx_vector_new ( size_t  size,
const scan_t scan 
)

Definition at line 43 of file context.c.

◆ ctx_vector_of()

CT_BROKER_API vector_t* ctx_vector_of ( size_t  size,
const scan_t scan 
)

Definition at line 48 of file context.c.