aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig/symlist.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-11 13:18:07 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-11 13:18:07 +0200
commitdc3c959a5f6d74e91f9a2d997d20e47b07b65628 (patch)
tree6010f883f1b916d004c64b8c88d8938cf10e3dcb /scripts/parse_kconfig/symlist.h
parentef33b81dfe8fe8b3b161618b4a7f48fc196b105d (diff)
downloadlinux-conf-perf-dc3c959a5f6d74e91f9a2d997d20e47b07b65628.tar.gz
linux-conf-perf-dc3c959a5f6d74e91f9a2d997d20e47b07b65628.tar.bz2
linux-conf-perf-dc3c959a5f6d74e91f9a2d997d20e47b07b65628.zip
Kconfig_parser renamed to parse_kconfig
Diffstat (limited to 'scripts/parse_kconfig/symlist.h')
-rw-r--r--scripts/parse_kconfig/symlist.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/parse_kconfig/symlist.h b/scripts/parse_kconfig/symlist.h
new file mode 100644
index 0000000..88bf4b0
--- /dev/null
+++ b/scripts/parse_kconfig/symlist.h
@@ -0,0 +1,25 @@
+#ifndef _SYMLIST_H_
+#define _SYMLIST_H_
+
+#include <stdbool.h>
+#include <string.h>
+#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_ */