aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig/symlist.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-30 16:22:01 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-30 16:22:01 +0200
commitcd1b4f5e954f925bb7689189a5c2fd5fef52d745 (patch)
treed73567badc8e09787a69b4033291c37c8f0eb880 /scripts/parse_kconfig/symlist.h
parent94a0f92e1a36d68c95781e916a94a377b7081d2f (diff)
downloadlinux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.tar.gz
linux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.tar.bz2
linux-conf-perf-cd1b4f5e954f925bb7689189a5c2fd5fef52d745.zip
parse_kconfig changes before more changes come
This is commit that breaks parse_kconfig program...
Diffstat (limited to 'scripts/parse_kconfig/symlist.h')
-rw-r--r--scripts/parse_kconfig/symlist.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/scripts/parse_kconfig/symlist.h b/scripts/parse_kconfig/symlist.h
index 6f1f32f..7d24bd1 100644
--- a/scripts/parse_kconfig/symlist.h
+++ b/scripts/parse_kconfig/symlist.h
@@ -1,26 +1,36 @@
+#include <stdlib.h>
+#include <stdio.h>
#include <stdbool.h>
#include <string.h>
-#include "cnfexpr.h"
+#include <search.h>
+
+#include "cnfbuild.h"
+#include "output.h"
#ifndef _SYMLIST_H_
#define _SYMLIST_H_
struct symlist_el {
- unsigned int id;
char *name;
- bool prompt, def;
- struct cnfexpr *be;
- struct cnfexpr *re_be; // forward dependency
+ bool prompt;
+ struct cnfexpr *def;
+ size_t def_size;
+
+ struct cnfexpr *dep, *rev_dep;
};
+
struct symlist {
struct symlist_el *array;
size_t size, pos;
+ unsigned lastsym;
};
struct symlist *symlist_create();
void symlist_add(struct symlist *sl, char *name);
-void symlist_set_prompt(struct symlist *sl, char *name, bool prompt);
+void symlist_closesym(struct symlist *sl);
+unsigned symlist_adddummy(struct symlist *sl);
struct symlist_el *symlist_find(struct symlist *sl, char *name);
+size_t symlist_id(struct symlist *sl, char *name);
void symlist_print(struct symlist *sl);
void symlist_free(struct symlist *sl);