]> git.ozlabs.org Git - ccan/blob - tools/tools.h
Dependency checking (make sure .o files exist, prereq to building)
[ccan] / tools / tools.h
1 #ifndef CCAN_TOOLS_H
2 #define CCAN_TOOLS_H
3 #include <stdbool.h>
4
5 #define IDENT_CHARS     "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
6                         "abcdefghijklmnopqrstuvwxyz" \
7                         "01234567889_"
8
9 #define SPACE_CHARS     " \f\n\r\t\v"
10
11 /* FIXME: Remove some -I */
12 #define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I. -I../.."
13
14 /* This actually compiles and runs the info file to get dependencies. */
15 char **get_deps(const void *ctx, const char *dir, const char *name,
16                 bool recurse);
17
18 /* This is safer: just looks for ccan/ strings in info */
19 char **get_safe_ccan_deps(const void *ctx, const char *dir, const char *name,
20                           bool recurse);
21
22 char *talloc_basename(const void *ctx, const char *dir);
23 char *talloc_dirname(const void *ctx, const char *dir);
24 char *talloc_getcwd(const void *ctx);
25 #endif /* CCAN_TOOLS_H */