chiark / gitweb /
initial cut of X client
[moebius2.git] / common.h
index 3978b5bc83ef8fa06bc3001276483831cf31beac..d6d1e58c8fc768f32550fae2a82d664e208213e5 100644 (file)
--- a/common.h
+++ b/common.h
@@ -15,6 +15,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include <errno.h>
 
 #define D3 3
 
@@ -25,6 +26,14 @@ double hypotD2plus(const double p[D3], const double q[D3], double add);
 double magnD(const double pq[D3]);
 void xprod(double r[D3], const double a[D3], const double b[D3]);
 
+void flushoutput(void);
+void diee(const char *what);
+
+#define FOR_COORD(k) \
+  for ((k)=0; (k)<D3; (k)++)
+
+#define K FOR_COORD(k)
+
 #ifdef FP_FAST_FMA
 # define fma_fast fma
 #else