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=52f57d699c4cefd959d300bc44349038d7e4e5a8;hp=48483e238b58d82e9ede0eaedf89600301804f46;hb=b1f4b728760aaa2cba8e19dca85b93d248f6db12;hpb=8d6cf0f224b5df9866eba9350343067edcee78dd diff --git a/pctb/common.h b/pctb/common.h index 48483e2..52f57d6 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -39,6 +40,8 @@ #include #include #include +#include +#include #include #include @@ -46,6 +49,7 @@ typedef struct { int w,h; + struct RgbImage *rgb; char d[]; } CanonImage; @@ -158,4 +162,11 @@ 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)))) + +#define STRING2(x) #x +#define STRING(x) STRING2(x) + #endif /*COMMON_H*/