mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
More polishing of some of the branche's changes.
This commit is contained in:
parent
0ba4b768cd
commit
8031da4ee7
7 changed files with 9 additions and 16 deletions
|
@ -1476,9 +1476,9 @@ void EnumType::CheckAndAddName(const string& module_name, const char* name,
|
|||
}
|
||||
else
|
||||
{
|
||||
// We allow double-definitions if matching exactly. This is
|
||||
// so that we can define an enum both in a *.bif and *.bro to
|
||||
// avoid cyclic dependencies.
|
||||
// We allow double-definitions if matching exactly. This is so that
|
||||
// we can define an enum both in a *.bif and *.bro for avoiding
|
||||
// cyclic dependencies.
|
||||
if ( id->Name() != make_full_var_name(module_name.c_str(), name)
|
||||
|| (id->HasVal() && val != id->ID_Val()->AsEnum()) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue