diff options
| author | peter <peter@pmikkelsen.com> | 2026-08-30 20:52:43 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-08-30 20:52:43 +0000 |
| commit | 729964bea692f9683860978b89848784a7fc2f46 (patch) | |
| tree | ba5b37a61206142fce18214c7af341ac837a7923 /src/include | |
| parent | 04827577ea502a9f0edc69e00e008751c8119cbc (diff) | |
Still a lot to be done, but I'm going to bed.
Two remaining big issues:
* aplwc (the parameter passed "everywhere") - should it move or not?
* values returned from the public API should not move.
FossilOrigin-Name: 31ab3154b8f3d5ac167218496e9e204324bf0ac9d36b7bada8fe2a6c8f93d51c
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/aplwc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/aplwc.h b/src/include/aplwc.h index ad640e4..843fe42 100644 --- a/src/include/aplwc.h +++ b/src/include/aplwc.h @@ -18,7 +18,12 @@ struct aplwc; struct aplwc_line; struct aplwc_value; -enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t); +struct aplwc_fns { + void *(*alloc)(size_t, size_t, size_t *); + void (*dealloc)(void *); +}; + +enum aplwc_rc aplwc_new(struct aplwc **, struct aplwc_fns); void aplwc_destroy(struct aplwc *); const char *aplwc_errstr_rc(enum aplwc_rc); const char *aplwc_errstr(struct aplwc *); |