chiark / gitweb /
parallel thing compiles now
[moebius2.git] / common.c
index 34381e890494a489c95e0161856dccdc598a6ce6..fe58990f2c76888b5189682e76e988966b486149 100644 (file)
--- a/common.c
+++ b/common.c
@@ -61,4 +61,5 @@ void gsldie(int l, const char *what, int status) {
 }
 
 void diee(const char *what) { perror(what); exit(16); }
-void flushoutput(void) { if (fflush(stdout)||ferror(stdout)) diee("stdout"); }
+void fail(const char *emsg) { fputs(emsg,stderr); exit(12); }
+void flushoutput(void) { if (ferror(stdout)||fflush(stdout)) diee("stdout"); }