summaryrefslogtreecommitdiff
path: root/src/matchup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/matchup.c')
-rw-r--r--src/matchup.c13
1 files changed, 9 insertions, 4 deletions
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;