summaryrefslogtreecommitdiff
path: root/tools/read_config_header.h
blob: 8554f7622e8a4c04b6027d8d0d021a782563beb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef CCAN_TOOLS_READ_CONFIG_HEADER_H
#define CCAN_TOOLS_READ_CONFIG_HEADER_H
#include <stdbool.h>

/* 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: sets compiler/cflags. */
char *read_config_header(const char *config_dir, bool verbose);

#endif /* CCAN_TOOLS_READ_CONFIG_HEADER_H */