From 86feda786f115cb4468957f00b8968b986ed7c54 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 20 Aug 2026 20:54:43 +0000 Subject: Get full coverage of aplwc-repl. This required wrapping malloc so that it can fail under our control. FossilOrigin-Name: a27ccb5f02994393a518419bae15fd26ff0016c734d96350ae2137a1d3c0937c --- src/bin/aplwc_repl.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/bin/aplwc_repl.h (limited to 'src/bin/aplwc_repl.h') diff --git a/src/bin/aplwc_repl.h b/src/bin/aplwc_repl.h new file mode 100644 index 0000000..c189b77 --- /dev/null +++ b/src/bin/aplwc_repl.h @@ -0,0 +1,23 @@ +#ifndef APLWC_REPL_H +#define APLWC_REPL_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* util.c */ +unsigned long getenv_ulong(const char *, unsigned long); + +/* wrappers.c */ +void *wrapped_malloc(size_t); +void wrapped_free(void *); +#define malloc(size) wrapped_malloc(size) +#define free(ptr) wrapped_free(ptr) + +#endif /* APLWC_REPL_H */ -- cgit v1.2.3