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/symlist.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 programs/src/kconfig_parser/symlist.h (limited to 'programs/src/kconfig_parser/symlist.h') diff --git a/programs/src/kconfig_parser/symlist.h b/programs/src/kconfig_parser/symlist.h new file mode 100644 index 0000000..caa827a --- /dev/null +++ b/programs/src/kconfig_parser/symlist.h @@ -0,0 +1,24 @@ +#ifndef _SYMLIST_H_ +#define _SYMLIST_H_ + +#include +#include +#include "boolexp.h" + +struct symlist_el { + unsigned int id; + char *name; + struct boolexp *be; +}; +struct symlist { + struct symlist_el *array; + size_t size, pos; +}; + +struct symlist *symlist_create(); +void symlist_add(struct symlist *sl, char *name); +struct symlist_el *symlist_find(struct symlist *sl, char *name); +void symlist_print(struct symlist *sl); +void symlist_free(struct symlist *sl); + +#endif /* _SYMLIST_H_ */ -- cgit v1.2.3