chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store full-colour image with every screenshot
[ypp-sc-tools.db-test.git]
/
pctb
/
common.h
diff --git
a/pctb/common.h
b/pctb/common.h
index 48483e238b58d82e9ede0eaedf89600301804f46..23b8ca33972d29bf589cae1799896c70408392bf 100644
(file)
--- a/
pctb/common.h
+++ b/
pctb/common.h
@@
-39,6
+39,8
@@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
+#include <dirent.h>
+#include <pcre.h>
#include <inttypes.h>
#include <sys/wait.h>
#include <inttypes.h>
#include <sys/wait.h>
@@
-46,6
+48,7
@@
typedef struct {
int w,h;
typedef struct {
int w,h;
+ struct RgbImage *rgb;
char d[];
} CanonImage;
char d[];
} CanonImage;
@@
-158,4
+161,8
@@
char *masprintf(const char *fmt, ...) FMT(1,2);
"(Are you in the correct directory?)", helper); \
}while(0)
"(Are you in the correct directory?)", helper); \
}while(0)
+
+#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0])))
+
+
#endif /*COMMON_H*/
#endif /*COMMON_H*/