Cthulhu  0.2.10
Cthulhu compiler collection
node.c File Reference
#include "scan/node.h"
#include "base/panic.h"
#include "arena/arena.h"
Include dependency graph for node.c:

Go to the source code of this file.

Functions

STA_DECL node_tnode_builtin (const char *name, arena_t *arena)
 get the builtin node node used for drivers that declare builtin symbols More...
 
STA_DECL bool node_is_builtin (const node_t *node)
 check if a node is the builtin node More...
 
STA_DECL void node_init (node_t *node, const scan_t *scan, where_t where)
 
STA_DECL node_tnode_new (const scan_t *scan, where_t where)
 create a new node on the heap More...
 
STA_DECL node_t node_make (const scan_t *scan, where_t where)
 create a new node on the stack More...
 
STA_DECL const scan_tnode_get_scan (const node_t *node)
 get the associated source file of a node More...
 
STA_DECL where_t node_get_location (const node_t *node)
 get the location of a node inside its source file More...
 

Variables

const where_t kNowhere = { 0, 0, 0, 0 }
 nowhere in a source file More...
 

Function Documentation

◆ node_init()

STA_DECL void node_init ( node_t node,
const scan_t scan,
where_t  where 
)

Definition at line 30 of file node.c.