mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -5331,3 +5331,13 @@ const digest_salt = "Please change this value." &redef;
|
|||
global done_with_network = F;
|
||||
event net_done(t: time)
|
||||
{ done_with_network = T; }
|
||||
|
||||
# This sets up primary BIFs such that they can be used by any
|
||||
# further scripts within their global initializations and is intended to be
|
||||
# the last thing done within this script. It's called within @if simply so
|
||||
# that it executes at parse-time. An alternative way to do that is to call
|
||||
# it during a global variable assignment/initialization. Formally adding a
|
||||
# @run directive to the language whose sole purpose is parse-time code
|
||||
# execution would be another idea.
|
||||
@if ( __init_primary_bifs() )
|
||||
@endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue