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/setforward.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/setforward.c') diff --git a/src/setforward.c b/src/setforward.c index 356ec78..ec282ba 100644 --- a/src/setforward.c +++ b/src/setforward.c @@ -1,5 +1,8 @@ #include +#include // rename +#undef EOF // used as a label + #include "buffer.h" #include "case.h" #include "cdbmake.h" @@ -9,32 +12,36 @@ #define WHO "setforward" -int rename(const char *, const char *); // stdio.h - void usage() { logmsg(WHO, 100, USAGE, "setforward data.cdb data.tmp"); } + void nomem() { logmsg(WHO, 111, FATAL, "out of memory"); } + void missingsemicolon() { logmsg(WHO, 100, FATAL, "final instruction must end with semicolon"); } + void extracolon() { logmsg(WHO, 100, FATAL, "double colons are not permitted"); } + void extracomma() { logmsg(WHO, 100, FATAL, "commas are not permitted before colons"); } + void nulbyte() { logmsg(WHO, 100, FATAL, "NUL bytes are not permitted"); } + void longaddress() { logmsg(WHO, 100, FATAL, "addresses over 800 bytes are not permitted"); -- cgit v1.2.3