]> git.ozlabs.org Git - ccan/blob - tools/tools.h
Build tests for ccan.
[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 /* This also needs to compile the info file. */
23 char **get_libs(const void *ctx, const char *dir,
24                 const char *name, unsigned int *num);
25
26 /* From tools.c */
27 char *talloc_basename(const void *ctx, const char *dir);
28 char *talloc_dirname(const void *ctx, const char *dir);
29 char *talloc_getcwd(const void *ctx);
30 char *run_command(const void *ctx, const char *fmt, ...);
31 #endif /* CCAN_TOOLS_H */