X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2Fcommon.h;h=d4464bdbefa4adf958d8619d5d2b63ef8c3ab88d;hp=48483e238b58d82e9ede0eaedf89600301804f46;hb=5bcf61f52358ce7a1ceea3106c4c8a2d0a6dbfcd;hpb=ab4295d148c3112ab2859fac0349152d9b6987be diff --git a/pctb/common.h b/pctb/common.h index 48483e2..d4464bd 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -46,6 +48,7 @@ typedef struct { int w,h; + struct RgbImage *rgb; char d[]; } CanonImage; @@ -158,4 +161,8 @@ char *masprintf(const char *fmt, ...) FMT(1,2); "(Are you in the correct directory?)", helper); \ }while(0) + +#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0]))) +#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj)))) + #endif /*COMMON_H*/