X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Ftools.h;h=440abc89353055764362f355d985803c1934116f;hb=165727526f785b05f67f3d88f9518a0a840acbbf;hp=6ac4e66fcbc78b865e655d0182f4a4e7ead6cb0f;hpb=b0f7eb297643941bd96eb209f35fbe223cd24e10;p=ccan diff --git a/tools/tools.h b/tools/tools.h index 6ac4e66f..440abc89 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -9,7 +9,7 @@ #define SPACE_CHARS " \f\n\r\t\v" /* FIXME: Remove some -I */ -#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I. -I../.." +#define CFLAGS "-O -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I.. -I../.." /* This actually compiles and runs the info file to get dependencies. */ char **get_deps(const void *ctx, const char *dir, const char *name, @@ -19,7 +19,13 @@ char **get_deps(const void *ctx, const char *dir, const char *name, char **get_safe_ccan_deps(const void *ctx, const char *dir, const char *name, bool recurse); +/* This also needs to compile the info file. */ +char **get_libs(const void *ctx, const char *dir, + const char *name, unsigned int *num); + +/* From tools.c */ char *talloc_basename(const void *ctx, const char *dir); char *talloc_dirname(const void *ctx, const char *dir); char *talloc_getcwd(const void *ctx); +char *run_command(const void *ctx, const char *fmt, ...); #endif /* CCAN_TOOLS_H */