X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=pctb%2Fcommon.h;h=e4100f9d461bcfe216c061970016b4daa759936b;hp=3fa8a81d985621ad15277a461b7a5fb313b10398;hb=ef1a9d783f52a2d304e5872b6bb1f066621a5acf;hpb=6a3c0962283d32bc6e5f6c47c929baf37ddc642f diff --git a/pctb/common.h b/pctb/common.h index 3fa8a81..e4100f9 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -74,6 +76,7 @@ typedef struct { /* both inclusive */ DF(struct) \ DF(ocr) \ DF(rsync) \ + DF(structcolon) \ DF(callout) enum { @@ -157,4 +160,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]))) + + #endif /*COMMON_H*/