From 20b85c03e751b4876fa3c92040464e483172b746 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 19:03:11 +0200 Subject: manual format adjustment --- src/matchup.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/matchup.c') diff --git a/src/matchup.c b/src/matchup.c index 06cd481..d68d5f8 100644 --- a/src/matchup.c +++ b/src/matchup.c @@ -19,14 +19,17 @@ void nomem() { logmsg(WHO, 111, FATAL, "out of memory"); } + void die_read() { logmsg(WHO, 110, ERROR, "unable to read input: "); } + void die_write() { logmsg(WHO, 110, ERROR, "unable to write output: "); } + void die_write5() { logmsg(WHO, 111, FATAL, "unable to write fd 5: "); @@ -36,6 +39,7 @@ void out(char *buf, int len) { if (buffer_put(buffer_1, buf, len) == -1) die_write(); } + void outs(char *buf) { if (buffer_puts(buffer_1, buf) == -1) die_write(); @@ -48,16 +52,17 @@ void out5(char *buf, int len) { if (buffer_put(&bo5, buf, len) == -1) die_write5(); } + void outs5(char *buf) { if (buffer_puts(&bo5, buf) == -1) die_write5(); } -GEN_ALLOC_typedef(ulongalloc, unsigned long, u, len, a) - GEN_ALLOC_ready(ulongalloc, unsigned long, u, len, a, i, n, x, 30, ulongalloc_ready) - GEN_ALLOC_readyplus(ulongalloc, unsigned long, u, len, a, i, n, x, 30, ulongalloc_readyplus) +GEN_ALLOC_typedef(ulongalloc, unsigned long, u, len, a); +GEN_ALLOC_ready(ulongalloc, unsigned long, u, len, a, i, n, x, 30, ulongalloc_ready); +GEN_ALLOC_readyplus(ulongalloc, unsigned long, u, len, a, i, n, x, 30, ulongalloc_readyplus); - char strnum[FMT_ULONG]; +char strnum[FMT_ULONG]; stralloc pool = {0}; unsigned int poolbytes = 0; -- cgit v1.2.3