X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Ftools.h;h=6ac4e66fcbc78b865e655d0182f4a4e7ead6cb0f;hb=3460418c419dfcc84316ad65497b0a00950480b9;hp=449512550c035c40e8158318b720fb6fb890fc3c;hpb=cac3b2dd745bd86b26b176f06a7545bfa67112eb;p=ccan-lca-2011.git diff --git a/tools/tools.h b/tools/tools.h index 4495125..6ac4e66 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -6,13 +6,20 @@ "abcdefghijklmnopqrstuvwxyz" \ "01234567889_" -#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I." +#define SPACE_CHARS " \f\n\r\t\v" -/* This actually compiles and runs the _info.c file to get dependencies. */ -char **get_deps(const void *ctx, const char *dir, bool recurse); +/* FIXME: Remove some -I */ +#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I. -I../.." -/* This is safer: just looks for ccan/ strings in _info.c */ -char **get_safe_ccan_deps(const void *ctx, const char *dir, bool recurse); +/* This actually compiles and runs the info file to get dependencies. */ +char **get_deps(const void *ctx, const char *dir, const char *name, + bool recurse); -#endif /* CCAN_TOOLS_H */ +/* This is safer: just looks for ccan/ strings in info */ +char **get_safe_ccan_deps(const void *ctx, const char *dir, const char *name, + bool recurse); +char *talloc_basename(const void *ctx, const char *dir); +char *talloc_dirname(const void *ctx, const char *dir); +char *talloc_getcwd(const void *ctx); +#endif /* CCAN_TOOLS_H */