From c1439d43d0bda8704ef6a08f5bb624efca906617 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Wed, 10 Jun 2020 00:32:51 +0200 Subject: builtin: can be initialized later The initialization of the buitins can be done later, after the types have been initialized. So move the call to init_builtins() to just before declare_builtins(). This will allow some other small improvements. Signed-off-by: Luc Van Oostenryck --- lib.c | 1 + symbol.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 8f071bfe..aa1c1d65 100644 --- a/lib.c +++ b/lib.c @@ -1595,6 +1595,7 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list predefined_macros(); create_builtin_stream(); + init_builtins(0); declare_builtins(); list = sparse_initial(); diff --git a/symbol.c b/symbol.c index 7044ab3f..6ee521ba 100644 --- a/symbol.c +++ b/symbol.c @@ -783,7 +783,6 @@ void init_symbols(void) #include "ident-list.h" init_parser(stream); - init_builtins(stream); } // For fix-sized types -- cgit 1.2.3-korg