diff options
| author | 2023-06-13 10:55:35 +0200 | |
|---|---|---|
| committer | 2023-06-13 11:04:31 +0200 | |
| commit | 3e5c11563f8cb7c843c71a0f761e5b644f39db46 (patch) | |
| tree | 1192d4ba899b031ca99cf5a79fc814d98bed1e76 /common.h | |
| parent | 427d2298cd6f6e4da9a31c723a79a36267aebbc1 (diff) | |
lower allocas in isel() instead of emit() and misc fixes
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -314,6 +314,10 @@ struct arena { #define vec_of(T) struct { T *p; int _cap; uint n; } +extern void *xcalloc(size_t n, const char *); +extern void *xrealloc(void *, size_t n, const char *); +#define xcalloc(n) xcalloc(n, __func__) +#define xrealloc(p,n) xrealloc(p, n, __func__) struct arena *newarena(uint chunksiz); void *alloc(struct arena **, uint siz, uint align); static inline void * |