diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-10 00:32:51 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-06-12 20:45:57 +0200 |
commit | c1439d43d0bda8704ef6a08f5bb624efca906617 (patch) | |
tree | 9ff1bc1a3e8feba1056842a0d894cc4c3d664c7d | |
parent | 42323db3955557b223268ec4196acb77308ab204 (diff) | |
download | sparse-c1439d43d0bda8704ef6a08f5bb624efca906617.tar.gz |
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 <luc.vanoostenryck@gmail.com>
-rw-r--r-- | lib.c | 1 | ||||
-rw-r--r-- | symbol.c | 1 |
2 files changed, 1 insertions, 1 deletions
@@ -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(); @@ -783,7 +783,6 @@ void init_symbols(void) #include "ident-list.h" init_parser(stream); - init_builtins(stream); } // For fix-sized types |