summaryrefslogtreecommitdiff
path: root/src/setforward.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/setforward.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/setforward.c')
-rw-r--r--src/setforward.c11
1 files changed, 9 insertions, 2 deletions
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 <unistd.h>
+#include <stdio.h> // 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");