aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildvm.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/buildvm.c b/src/buildvm.c
index d69fc1d6..152c95f0 100644
--- a/src/buildvm.c
+++ b/src/buildvm.c
@@ -42,20 +42,6 @@
42#include "../dynasm/dasm_proto.h" 42#include "../dynasm/dasm_proto.h"
43 43
44/* Glue macros for DynASM. */ 44/* Glue macros for DynASM. */
45#define DASM_M_GROW(ctx, t, p, sz, need) \
46 do { \
47 size_t _sz = (sz), _need = (need); \
48 if (_sz < _need) { \
49 if (_sz < 16) _sz = 16; \
50 while (_sz < _need) _sz += _sz; \
51 (p) = (t *)realloc((p), _sz); \
52 if ((p) == NULL) exit(1); \
53 (sz) = _sz; \
54 } \
55 } while(0)
56
57#define DASM_M_FREE(ctx, p, sz) free(p)
58
59static int collect_reloc(BuildCtx *ctx, uint8_t *addr, int idx, int type); 45static int collect_reloc(BuildCtx *ctx, uint8_t *addr, int idx, int type);
60 46
61#define DASM_EXTERN(ctx, addr, idx, type) \ 47#define DASM_EXTERN(ctx, addr, idx, type) \