]> git.ozlabs.org Git - ccan/blob - tools/tools.h
841265f99ad914e58ffcd918ffa926dd2f00a857
[ccan] / tools / tools.h
1 #ifndef CCAN_TOOLS_H
2 #define CCAN_TOOLS_H
3
4 #define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I."
5
6 char **split(const void *ctx, const char *text, const char *delims,
7              unsigned int *nump);
8
9 char **get_deps(const void *ctx, const char *dir);
10
11 void *grab_fd(const void *ctx, int fd);
12 void *grab_file(const void *ctx, const char *filename);
13
14 #define streq(a,b) (strcmp((a),(b)) == 0)
15
16 #endif /* CCAN_TOOLS_H */
17