diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-26 15:17:05 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-26 15:17:05 +0100 |
commit | a457b9823e4c46b5d7bc7d5800008a483502ad32 (patch) | |
tree | 794e88f8a1416e2d317a7aa0af4a1ef973c710fd /scripts/kconfig_parser/cnfexpr.h | |
parent | f91e9e472d50795b6e67dfb3905559800a3bef66 (diff) | |
download | linux-conf-perf-a457b9823e4c46b5d7bc7d5800008a483502ad32.tar.gz linux-conf-perf-a457b9823e4c46b5d7bc7d5800008a483502ad32.tar.bz2 linux-conf-perf-a457b9823e4c46b5d7bc7d5800008a483502ad32.zip |
kconfig_parser moved from programs to scripts
This way all executable code is inside scripts directory.
Diffstat (limited to 'scripts/kconfig_parser/cnfexpr.h')
-rw-r--r-- | scripts/kconfig_parser/cnfexpr.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/kconfig_parser/cnfexpr.h b/scripts/kconfig_parser/cnfexpr.h new file mode 100644 index 0000000..0473368 --- /dev/null +++ b/scripts/kconfig_parser/cnfexpr.h @@ -0,0 +1,26 @@ +#ifndef _CNFEXPR_H_ +#define _CNFEXPR_H_ + +#include <stdlib.h> +#include <stdbool.h> +#include <stdio.h> +#include "symlist.h" +#include "kconfig/lkc.h" + +enum cnfexpr_type { + CT_EXPR, CT_FALSE, CT_TRUE +}; + +struct cnfexpr { + enum cnfexpr_type type; + int **exprs; + unsigned *sizes; + unsigned size; +}; + +struct cnfexpr *kconfig_cnfexpr(struct symlist *sl, bool nt, struct expr *expr); +void cnf_printf(struct cnfexpr *); + +struct boolexp *printf_original(struct symlist *sl, struct expr *expr); + +#endif /* _CNFEXPR_H_ */ |