chiark / gitweb /
constify CanonImage->rgb and make a copy in find_islandname
[ypp-sc-tools.web-live.git] / pctb / common.h
index fe87e16bbb566525a166bce6f5e3a7384a32fca2..210f23ac4834baa516d8b707025ca956e93e3083 100644 (file)
@@ -49,7 +49,7 @@
 
 typedef struct {
   int w,h;
-  struct RgbImage *rgb;
+  const struct RgbImage *rgb;
   char d[];
 } CanonImage;
 
@@ -166,4 +166,7 @@ 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 STRING2(x) #x
+#define STRING(x) STRING2(x)
+
 #endif /*COMMON_H*/