From a457b9823e4c46b5d7bc7d5800008a483502ad32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 26 Mar 2015 15:17:05 +0100 Subject: kconfig_parser moved from programs to scripts This way all executable code is inside scripts directory. --- scripts/kconfig_parser/symlist.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 scripts/kconfig_parser/symlist.h (limited to 'scripts/kconfig_parser/symlist.h') diff --git a/scripts/kconfig_parser/symlist.h b/scripts/kconfig_parser/symlist.h new file mode 100644 index 0000000..88bf4b0 --- /dev/null +++ b/scripts/kconfig_parser/symlist.h @@ -0,0 +1,25 @@ +#ifndef _SYMLIST_H_ +#define _SYMLIST_H_ + +#include +#include +#include "cnfexpr.h" + +struct symlist_el { + unsigned int id; + char *name; + struct cnfexpr *be; + struct cnfexpr *re_be; // forward dependency +}; +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