tools.h 875 B

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