diff options
Diffstat (limited to 'src/lib/memory.c')
| -rw-r--r-- | src/lib/memory.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/memory.c b/src/lib/memory.c index 187137e..136c7e6 100644 --- a/src/lib/memory.c +++ b/src/lib/memory.c @@ -53,3 +53,35 @@ memory_free_aplwc(struct memory *m, struct aplwc *p) UNUSED_PARAMETER(m); UNUSED_PARAMETER(p); } + +struct aplwc_line * +memory_alloc_aplwc_line(struct memory *m) +{ + struct aplwc_line *p; + + p = alloc(m, sizeof(struct aplwc_line), alignof(struct aplwc_line)); + return p; +} + +void +memory_free_aplwc_line(struct memory *m, struct aplwc_line *p) +{ + UNUSED_PARAMETER(m); + UNUSED_PARAMETER(p); +} + +struct string * +memory_alloc_string(struct memory *m, size_t bytes) +{ + struct string *p; + + p = alloc(m, sizeof(struct string) + bytes, alignof(struct string)); + return p; +} + +void +memory_free_string(struct memory *m, struct string *p) +{ + UNUSED_PARAMETER(m); + UNUSED_PARAMETER(p); +} |