From afeddb02f4482efce98a9a411c04d31daeb9aee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 14 Jan 2015 12:39:50 +0100 Subject: Output folder added to kconfig_parser Also kconfig folder in programs/src is renamed to kconfig_parser --- programs/src/kconfig_parser/boolexp.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 programs/src/kconfig_parser/boolexp.h (limited to 'programs/src/kconfig_parser/boolexp.h') 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 +#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_ */ -- cgit v1.2.3