summaryrefslogtreecommitdiff
path: root/scripts/kconfig/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/internal.h')
-rw-r--r--scripts/kconfig/internal.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/kconfig/internal.h b/scripts/kconfig/internal.h
new file mode 100644
index 000000000000..d0ffce2dfbba
--- /dev/null
+++ b/scripts/kconfig/internal.h
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef INTERNAL_H
+#define INTERNAL_H
+
+#include <hashtable.h>
+
+#define SYMBOL_HASHSIZE (1U << 14)
+
+extern HASHTABLE_DECLARE(sym_hashtable, SYMBOL_HASHSIZE);
+
+#define for_all_symbols(sym) \
+ hash_for_each(sym_hashtable, sym, node)
+
+#define EXPR_HASHSIZE (1U << 14)
+
+extern HASHTABLE_DECLARE(expr_hashtable, EXPR_HASHSIZE);
+
+void expr_invalidate_all(void);
+
+struct menu;
+
+extern struct menu *current_menu, *current_entry;
+
+extern const char *cur_filename;
+extern int cur_lineno;
+
+#endif /* INTERNAL_H */