aboutsummaryrefslogtreecommitdiff
path: root/programs/src/kconfig_parser/boolexp.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-01-14 12:39:50 +0100
committerKarel Kočí <cynerd@email.cz>2015-01-14 12:39:50 +0100
commitafeddb02f4482efce98a9a411c04d31daeb9aee4 (patch)
tree02353e650321f7115e3cb113681c8fef28833f05 /programs/src/kconfig_parser/boolexp.h
parent48a732fecf66799a4eba0194006f8726306d5e45 (diff)
downloadlinux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.gz
linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.tar.bz2
linux-conf-perf-afeddb02f4482efce98a9a411c04d31daeb9aee4.zip
Output folder added to kconfig_parser
Also kconfig folder in programs/src is renamed to kconfig_parser
Diffstat (limited to 'programs/src/kconfig_parser/boolexp.h')
-rw-r--r--programs/src/kconfig_parser/boolexp.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/programs/src/kconfig_parser/boolexp.h b/programs/src/kconfig_parser/boolexp.h
new file mode 100644
index 0000000..f03fc33
--- /dev/null
+++ b/programs/src/kconfig_parser/boolexp.h
@@ -0,0 +1,27 @@
+#ifndef _BOOLEXP_H_
+#define _BOOLEXP_H_
+
+#include <stdbool.h>
+#include "symlist.h"
+#include "kconfig/lkc.h"
+
+enum boolexp_type {
+ BE_OR, BE_AND, BE_NOT, BE_LEAF
+};
+
+struct boolexp;
+union boolexp_data {
+ struct boolexp *be;
+ unsigned int id;
+};
+
+struct boolexp {
+ enum boolexp_type type;
+ union boolexp_data left, right;
+};
+
+struct boolexp *copy_kconfig_dep(struct symlist *sl, struct expr *expr);
+struct boolexp *boolexp_cnf(struct boolexp *be);
+void boolexp_print(struct boolexp *be);
+
+#endif /* _BOOLEXP_H_ */