From 3be992e3f45dcfd9f8a45fa447de3abb710819b7 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 20 Aug 2026 16:04:41 +0000 Subject: Adapt a different coding style (no typedef'ed structs, C90...), and start working on a test setup. FossilOrigin-Name: ebb73df5fc58859b6e985c5ec84196bdd09f639dbcdc69e706f6b17652a2d413 --- src/aplwc.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/aplwc.h') diff --git a/src/aplwc.h b/src/aplwc.h index e01e38c..603e4f3 100644 --- a/src/aplwc.h +++ b/src/aplwc.h @@ -4,16 +4,18 @@ #include #include -typedef enum { +enum aplwc_rc { APLWC_OK, APLWC_NOT_IMPLEMENTED, - APLWC_OUT_OF_MEMORY, -} AplwcRc; + APLWC_OUT_OF_MEMORY +}; -typedef struct Aplwc Aplwc; +struct aplwc; -AplwcRc aplwc_new(Aplwc **, uint8_t *, size_t); -AplwcRc aplwc_destroy(Aplwc *); -const char *aplwc_errstr(Aplwc *); +enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t); +enum aplwc_rc aplwc_destroy(struct aplwc *); +const char *aplwc_errstr(struct aplwc *); + +#define APLWC_MIN_MEM (128) #endif /* APLWC_H */ -- cgit v1.2.3