From 3a81615601bf37ffc4f7b570030709ac0782e2ed Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 10 Aug 2026 09:18:23 +0000 Subject: Avoid calling malloc/free in the library code. FossilOrigin-Name: 3e7c2c1b4beda2a729c880caf1a41c441e0a8387d40b666ac7163eb1346653b5 --- src/aplwc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/aplwc.h') diff --git a/src/aplwc.h b/src/aplwc.h index 7a90147..e01e38c 100644 --- a/src/aplwc.h +++ b/src/aplwc.h @@ -1,15 +1,18 @@ #ifndef APLWC_H #define APLWC_H +#include +#include + typedef enum { APLWC_OK, APLWC_NOT_IMPLEMENTED, - APLWC_MALLOC_FAILED, + APLWC_OUT_OF_MEMORY, } AplwcRc; typedef struct Aplwc Aplwc; -AplwcRc aplwc_new(Aplwc **); +AplwcRc aplwc_new(Aplwc **, uint8_t *, size_t); AplwcRc aplwc_destroy(Aplwc *); const char *aplwc_errstr(Aplwc *); -- cgit v1.2.3