xref: /linux/scripts/kconfig/internal.h (revision 68e5c7d4cefb66de3953a874e670ec8f1ce86a24)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef INTERNAL_H
3 #define INTERNAL_H
4 
5 #include <hashtable.h>
6 
7 #define SYMBOL_HASHSIZE		(1U << 14)
8 
9 extern HASHTABLE_DECLARE(sym_hashtable, SYMBOL_HASHSIZE);
10 
11 #define for_all_symbols(sym) \
12 	hash_for_each(sym_hashtable, sym, node)
13 
14 #define EXPR_HASHSIZE		(1U << 14)
15 
16 extern HASHTABLE_DECLARE(expr_hashtable, EXPR_HASHSIZE);
17 
18 void expr_invalidate_all(void);
19 
20 struct menu;
21 
22 extern struct menu *current_menu, *current_entry;
23 
24 extern const char *cur_filename;
25 extern int cur_lineno;
26 
27 #endif /* INTERNAL_H */
28