chiark / gitweb /
make AADEPTH configurable
[ypp-sc-tools.db-test.git] / pctb / common.h
index e4100f9d461bcfe216c061970016b4daa759936b..5044bb35ee8015a3e109b71a1c2b167fbcfac2c6 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <locale.h>
 #include <stdarg.h>
+#include <math.h>
 #include <stdio.h>
 #include <errno.h>
 #include <assert.h>
@@ -48,6 +49,7 @@
 
 typedef struct {
   int w,h;
+  struct RgbImage *rgb;
   char d[];
 } CanonImage;
 
@@ -162,6 +164,8 @@ char *masprintf(const char *fmt, ...) FMT(1,2);
 
 
 #define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0])))
+#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj))))
 
+#define STRING(x) #x
 
 #endif /*COMMON_H*/