summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code/global/util.h
blob: 130f823f61fc38b17af30ecc554b438110954cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

// functions for user
void Die(); // brings down the program
void *CheckedMalloc(long size); // malloc checked with autofree
void *CheckedRealloc(void *out, long size); // realloc checked with autofree

literal *giveType(char *tok); // gives a string a type

// gives strings types
I64 *isNum(char *str); 
Float *isFloat(char *str);
Char *isChar(char *str);
literal *isArr(char *str);
Vdef *isVdef(char *str);