Parsing exprs, enum_decls, Introduce intern table, symbol table
This commit is contained in:
12
memory.h
Normal file
12
memory.h
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
typedef struct Arena{
|
||||
OS_Memory memory;
|
||||
U64 len;
|
||||
U64 alignment;
|
||||
}Arena;
|
||||
|
||||
function B32 string_compare(String a, String b);
|
||||
function void *arena_push_size(Arena *a, SizeU size);
|
||||
function String arena_push_string_copy(Arena *arena, String string);
|
||||
#define arena_push_array(a,T,c) arena_push_size(a,sizeof(T)*(c))
|
||||
#define arena_push_struct(a,T) arena_push_array(a,T,1)
|
||||
Reference in New Issue
Block a user