mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Improve how primary/top-level BIFs get initialized
This commit is contained in:
parent
1bbae2368d
commit
4a8640d702
6 changed files with 67 additions and 52 deletions
10
src/scan.l
10
src/scan.l
|
@ -842,16 +842,6 @@ int yywrap()
|
|||
if ( zeek::reporter->Errors() > 0 )
|
||||
return 1;
|
||||
|
||||
if ( ! did_builtin_init && file_stack.length() == 1 )
|
||||
{
|
||||
// ### This is a gross hack - we know that the first file
|
||||
// we parse is init-bare.zeek, and after it it's safe to initialize
|
||||
// the built-ins. Furthermore, we want to initialize the
|
||||
// built-in's *right* after parsing bro.init, so that other
|
||||
// source files can use built-in's when initializing globals.
|
||||
init_builtin_funcs();
|
||||
}
|
||||
|
||||
yy_delete_buffer(YY_CURRENT_BUFFER);
|
||||
|
||||
if ( file_stack.length() > 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue