X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=52f57d699c4cefd959d300bc44349038d7e4e5a8;hb=8848415eea8db3c206dbc138732ff56ba51e83c6;hp=e4100f9d461bcfe216c061970016b4daa759936b;hpb=c2c039f07de178037bfbf12e4ee23c06f546de32;p=ypp-sc-tools.web-live.git diff --git a/pctb/common.h b/pctb/common.h index e4100f9..52f57d6 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -48,6 +49,7 @@ typedef struct { int w,h; + struct RgbImage *rgb; char d[]; } CanonImage; @@ -162,6 +164,9 @@ 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*/