internal.h 548 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef INTERNAL_H
  3. #define INTERNAL_H
  4. #include <hashtable.h>
  5. #define SYMBOL_HASHSIZE (1U << 14)
  6. extern HASHTABLE_DECLARE(sym_hashtable, SYMBOL_HASHSIZE);
  7. #define for_all_symbols(sym) \
  8. hash_for_each(sym_hashtable, sym, node)
  9. #define EXPR_HASHSIZE (1U << 14)
  10. extern HASHTABLE_DECLARE(expr_hashtable, EXPR_HASHSIZE);
  11. void expr_invalidate_all(void);
  12. struct menu;
  13. extern struct menu *current_menu, *current_entry;
  14. extern const char *cur_filename;
  15. extern int cur_lineno;
  16. #endif /* INTERNAL_H */