Expand description
Helper functions to call common simple C functions
Enums§
Functions§
- compute_
type_ size_ in_ bytes - Compute size of a type in bytes
- get_
size_ type - Get the type used to represet size
- lookup_
or_ create_ free_ fn - Get a declaration to the
freefunction, inserting it if it doesn’t already exist in the symbol table. - lookup_
or_ create_ malloc_ fn - Get a declaration to the
mallocfunction, inserting it if it doesn’t already exist in the symbol table. - lookup_
or_ insert_ function - Looks up a function by name in the given symbol table. If it exists, checks that its type matches the provided type. If it doesn’t exist, inserts a new function with the given name and type.