X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fread_config_header.h;fp=tools%2Fread_config_header.h;h=62eb152e4957fa967260f8576e8048740102af10;hp=0000000000000000000000000000000000000000;hb=624871f35e94510b9924ba733f2b878ecf2cc6cc;hpb=20ea8a370823bd73a3c96da40a4779fa6ea66462 diff --git a/tools/read_config_header.h b/tools/read_config_header.h new file mode 100644 index 00000000..62eb152e --- /dev/null +++ b/tools/read_config_header.h @@ -0,0 +1,16 @@ +#ifndef CCAN_TOOLS_READ_CONFIG_HEADER_H +#define CCAN_TOOLS_READ_CONFIG_HEADER_H +#include + +/* Get token if it's equal to token. */ +bool get_token(const char **line, const char *token); + +/* Get an identifier token. */ +char *get_symbol_token(void *ctx, const char **line); + +/* Read config header from config_dir/config.h: set compiler/cflags. */ +char *read_config_header(const char *config_dir, + const char **compiler, const char **cflags, + bool verbose); + +#endif /* CCAN_TOOLS_READ_CONFIG_HEADER_H */