diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-30 16:22:01 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-30 16:22:01 +0200 |
commit | cd1b4f5e954f925bb7689189a5c2fd5fef52d745 (patch) | |
tree | d73567badc8e09787a69b4033291c37c8f0eb880 /scripts/parse_kconfig/cnfbuild.h | |
parent | 94a0f92e1a36d68c95781e916a94a377b7081d2f (diff) | |
download | linux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.tar.gz linux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.tar.bz2 linux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.zip |
parse_kconfig changes before more changes come
This is commit that breaks parse_kconfig program...
Diffstat (limited to 'scripts/parse_kconfig/cnfbuild.h')
-rw-r--r-- | scripts/parse_kconfig/cnfbuild.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/parse_kconfig/cnfbuild.h b/scripts/parse_kconfig/cnfbuild.h new file mode 100644 index 0000000..e042cce --- /dev/null +++ b/scripts/parse_kconfig/cnfbuild.h @@ -0,0 +1,36 @@ +#include <stdlib.h> +#include <stdbool.h> + +#include "symlist.h" +#include <kconfig/lkc.h> +#include "output.h" + +#ifndef _CNFBUILD_H_ +#define _CNFBUILD_H_ + +enum cnfexpr_type { + CT_EXPR, CT_FALSE, CT_TRUE +}; + +struct cnfexpr { + enum cnfexpr_type type; + unsigned id; + struct output_expr *out; +}; + +struct cnfexpr *kconfig_expr(struct symlist *sl, struct expr *expr); + +struct cnfexpr *cnfexpr_true(struct symlist *sl); +struct cnfexpr *cnfexpr_false(struct symlist *sl); +struct cnfexpr *cnfexpr_sym(struct symlist *sl, struct symbol *sym); +struct cnfexpr *cnfexpr_eql(struct symlist *sl, struct symbol *sym1, + struct symbol *sym2); +struct cnfexpr *cnfexpr_or(struct symlist *sl, struct cnfexpr *e1, + struct cnfexpr *e2); +struct cnfexpr *cnfexpr_and(struct symlist *sl, struct cnfexpr *e1, + struct cnfexpr *e2); +struct cnfexpr *cnfexpr_not(struct symlist *sl, struct cnfexpr *e); +struct cnfexpr *cnfexpr_copy(struct cnfexpr *e); +void cnfexpr_free(struct cnfexpr *e); + +#endif /* _CNFBUILD_H_ */ |