mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Merge remote-tracking branch 'origin/topic/dnthayer/bif-tests'
* origin/topic/dnthayer/bif-tests: Improve "fmt" BIF documentation comment Improve tests of the type_name BIF Improve test cases for "order" BIF Fix documentation of sort BIF and add more tests Fix documentation for system_env BIF Deprecate the parse_dotted_addr BIF (use to_addr instead) Improve tests for to_port and type_name BIFs Improve tests for sort, order, and system_env BIFs Fix the join_string_vec BIF and add more tests Add more tests for previously-untested BIFs Add more tests for previously-untested BIFs Add more tests for previously-untested BIFs Add more tests for previously-untested BIFs Add tests for previously-untested strings BIFs
This commit is contained in:
commit
73cefcc11c
135 changed files with 1707 additions and 68 deletions
10
src/Type.cc
10
src/Type.cc
|
@ -1467,6 +1467,16 @@ bool VectorType::DoUnserialize(UnserialInfo* info)
|
|||
return yield_type != 0;
|
||||
}
|
||||
|
||||
void VectorType::Describe(ODesc* d) const
|
||||
{
|
||||
if ( d->IsReadable() )
|
||||
d->AddSP("vector of");
|
||||
else
|
||||
d->Add(int(Tag()));
|
||||
|
||||
yield_type->Describe(d);
|
||||
}
|
||||
|
||||
BroType* base_type(TypeTag tag)
|
||||
{
|
||||
static BroType* base_types[NUM_TYPES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue