mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
remove the byte_len and length bifs
This commit is contained in:
parent
a2556642e6
commit
986b346e3f
8 changed files with 6 additions and 74 deletions
|
@ -1,10 +0,0 @@
|
|||
#
|
||||
# @TEST-EXEC: bro -b %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
local a = "hello\0there";
|
||||
|
||||
print byte_len(a);
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#
|
||||
# @TEST-EXEC: bro -b %INPUT > out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
local mytable: table[string] of string = { ["key1"] = "val1" };
|
||||
local myset: set[count] = set( 3, 6, 2, 7 );
|
||||
local myvec: vector of string = vector( "value1", "value2" );
|
||||
|
||||
print length(mytable);
|
||||
print length(myset);
|
||||
print length(myvec);
|
||||
|
||||
mytable = table();
|
||||
myset = set();
|
||||
myvec = vector();
|
||||
|
||||
print length(mytable);
|
||||
print length(myset);
|
||||
print length(myvec);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue