mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove enum Opcode.
This commit is contained in:
parent
31ddca863c
commit
0ba382280c
8 changed files with 44 additions and 102 deletions
24
src/ID.cc
24
src/ID.cc
|
@ -59,34 +59,14 @@ void ID::ClearVal()
|
|||
val = 0;
|
||||
}
|
||||
|
||||
void ID::SetVal(Val* v, Opcode op, bool arg_weak_ref)
|
||||
void ID::SetVal(Val* v, bool arg_weak_ref)
|
||||
{
|
||||
if ( op != OP_NONE )
|
||||
{
|
||||
MutableVal::Properties props = 0;
|
||||
|
||||
if ( attrs && attrs->FindAttr(ATTR_TRACKED) )
|
||||
props |= MutableVal::TRACKED;
|
||||
|
||||
if ( props )
|
||||
{
|
||||
if ( v->IsMutableVal() )
|
||||
v->AsMutableVal()->AddProperties(props);
|
||||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
if ( props )
|
||||
#else
|
||||
if ( debug_logger.IsVerbose() || props )
|
||||
#endif
|
||||
notifiers.Modified(this);
|
||||
}
|
||||
|
||||
if ( ! weak_ref )
|
||||
Unref(val);
|
||||
|
||||
val = v;
|
||||
weak_ref = arg_weak_ref;
|
||||
notifiers.Modified(this);
|
||||
|
||||
#ifdef DEBUG
|
||||
UpdateValID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue