summaryrefslogtreecommitdiff
path: root/parse/err.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-09 10:18:26 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-09 10:18:26 -0700
commit95f4d0b36eb2d25889eed6ab48fb025d5b346b67 (patch)
treed5e206f2a9c6713c193911370958826928c91294 /parse/err.c
parent25d91f98a97df36e1da381b273219ceedf256a4d (diff)
downloadmc-95f4d0b36eb2d25889eed6ab48fb025d5b346b67.tar.gz
Style(9)-ify.
Diffstat (limited to 'parse/err.c')
-rw-r--r--parse/err.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/parse/err.c b/parse/err.c
index 82190db..38acbd1 100644
--- a/parse/err.c
+++ b/parse/err.c
@@ -15,7 +15,8 @@
#include "parse.h"
/* errors */
-void die(char *msg, ...)
+void
+die(char *msg, ...)
{
va_list ap;
@@ -26,7 +27,8 @@ void die(char *msg, ...)
abort();
}
-void fatal(Node *n, char *msg, ...)
+void
+fatal(Node *n, char *msg, ...)
{
va_list ap;
@@ -35,7 +37,8 @@ void fatal(Node *n, char *msg, ...)
va_end(ap);
}
-void lfatal(Srcloc l, char *msg, ...)
+void
+lfatal(Srcloc l, char *msg, ...)
{
va_list ap;
@@ -44,7 +47,8 @@ void lfatal(Srcloc l, char *msg, ...)
va_end(ap);
}
-void lfatalv(Srcloc l, char *msg, va_list ap)
+void
+lfatalv(Srcloc l, char *msg, va_list ap)
{
fprintf(stdout, "%s:%d: ", fname(l), lnum(l));
vfprintf(stdout, msg, ap);