]> git.ozlabs.org Git - ccan/blob - tools/tools.h
Speed up tracing by factor of 4-6, by writing less stupid code.
[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 #define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I."
12
13 /* This actually compiles and runs the info file to get dependencies. */
14 char **get_deps(const void *ctx, const char *dir, bool recurse);
15
16 /* This is safer: just looks for ccan/ strings in info */
17 char **get_safe_ccan_deps(const void *ctx, const char *dir, bool recurse);
18
19 #endif /* CCAN_TOOLS_H */
20