mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Merge remote branch 'origin/topic/robin/optional-fields' into topic/logging-framework
This commit is contained in:
commit
205d84b651
22 changed files with 358 additions and 116 deletions
11
src/Type.cc
11
src/Type.cc
|
@ -1432,6 +1432,17 @@ int same_type(const BroType* t1, const BroType* t2, int is_init)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int same_attrs(const Attributes* a1, const Attributes* a2)
|
||||
{
|
||||
if ( ! a1 )
|
||||
return (a2 != 0);
|
||||
|
||||
if ( ! a2 )
|
||||
return 0;
|
||||
|
||||
return (*a1 == *a2);
|
||||
}
|
||||
|
||||
int record_promotion_compatible(const RecordType* /* super_rec */,
|
||||
const RecordType* /* sub_rec */)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue