summaryrefslogtreecommitdiff
path: root/src/include/aplwc.h
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-05 07:22:31 +0000
committerpeter <peter@pmikkelsen.com>2026-09-05 07:22:31 +0000
commit58beb0bc9236234a697a3619c5023100a9574a59 (patch)
tree09078526487e37b000fcfc5305e1967cece90050 /src/include/aplwc.h
parent91ddaf36c86658b852f31dbaa7c1e96a980315c4 (diff)
Full coverage of bin/main.c
FossilOrigin-Name: 91deb642cded69b6c480471147004489a6072ec7c6603286aa6c0ebfc75bf030
Diffstat (limited to 'src/include/aplwc.h')
-rw-r--r--src/include/aplwc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/aplwc.h b/src/include/aplwc.h
index 459a036..5a6cb79 100644
--- a/src/include/aplwc.h
+++ b/src/include/aplwc.h
@@ -47,9 +47,11 @@ typedef struct { struct aplwc_ref ref; } AplwcValue;
struct aplwc_fns {
void *(*alloc)(size_t, size_t *);
void (*dealloc)(void *);
- int (*hook_alloc)(void);
};
+extern uint64_t aplwc_simulate_failure_at;
+extern uint64_t aplwc_simulate_failure_count;
+
struct aplwc *aplwc_new(struct aplwc_fns, enum aplwc_rc *);
void aplwc_destroy(struct aplwc *);
void aplwc_clear_line(AplwcLine *);
@@ -65,5 +67,6 @@ void aplwc_eval(AplwcLine *, AplwcValue *);
void aplwc_free_value(AplwcValue *);
const char *aplwc_value_string(AplwcValue *);
enum aplwc_rc aplwc_load_module(struct aplwc *, const char *, const char *, int n);
+int aplwc_simulate_failure(void);
#endif /* APLWC_H */