mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Merge remote branch 'origin/topic/gregor/bif-tuning'
* origin/topic/gregor/bif-tuning: Refactor: BifTypePtr --> BifType Bif const: make sure const is indeed a constant. Support any type in bif const declaration. Tweak for bifcl Fix to bifcl wrt namespaces. Enable declaration of set, vector, and table types in bifs. Moving type declarations into its own bif file Support namespaces / modules in bif. Checkpoint. Support namespaces / modules in bif. Checkpoint. Remove leftovers from removing "declare enum" from bifcl Use namespaces for NetVar type pointers. Remove unused and unnecessary "declare enum" from bifcl Bif: add record type declaration. Minor tweaks for bif language. enum type: don't allow mixing of explicit value and auto-increment. Add support for enum with explicit enumerator values. Closes #403.
This commit is contained in:
commit
12139e9faf
48 changed files with 864 additions and 459 deletions
|
@ -261,6 +261,7 @@ RecordType* script_id;
|
|||
TableType* id_table;
|
||||
|
||||
#include "const.bif.netvar_def"
|
||||
#include "types.bif.netvar_def"
|
||||
#include "event.bif.netvar_def"
|
||||
|
||||
void init_event_handlers()
|
||||
|
@ -297,7 +298,7 @@ void init_general_global_var()
|
|||
ssl_passphrase = internal_val("ssl_passphrase")->AsStringVal();
|
||||
|
||||
packet_filter_default = opt_internal_int("packet_filter_default");
|
||||
|
||||
|
||||
sig_max_group_size = opt_internal_int("sig_max_group_size");
|
||||
enable_syslog = opt_internal_int("enable_syslog");
|
||||
|
||||
|
@ -316,6 +317,7 @@ void init_general_global_var()
|
|||
void init_net_var()
|
||||
{
|
||||
#include "const.bif.netvar_init"
|
||||
#include "types.bif.netvar_init"
|
||||
|
||||
conn_id = internal_type("conn_id")->AsRecordType();
|
||||
endpoint = internal_type("endpoint")->AsRecordType();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue