mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Mark List::append/insert deprecated in favor of push_back/push_front for consistency with Queue
This commit is contained in:
parent
d2d5043bf0
commit
6144f459e1
39 changed files with 221 additions and 211 deletions
12
src/NFA.cc
12
src/NFA.cc
|
@ -54,7 +54,7 @@ NFA_State::~NFA_State()
|
|||
void NFA_State::AddXtionsTo(NFA_state_list* ns)
|
||||
{
|
||||
for ( int i = 0; i < xtions.length(); ++i )
|
||||
ns->append(xtions[i]);
|
||||
ns->push_back(xtions[i]);
|
||||
}
|
||||
|
||||
NFA_State* NFA_State::DeepCopy()
|
||||
|
@ -92,7 +92,7 @@ NFA_state_list* NFA_State::EpsilonClosure()
|
|||
epsclosure = new NFA_state_list;
|
||||
|
||||
NFA_state_list states;
|
||||
states.append(this);
|
||||
states.push_back(this);
|
||||
SetMark(this);
|
||||
|
||||
int i;
|
||||
|
@ -107,18 +107,18 @@ NFA_state_list* NFA_State::EpsilonClosure()
|
|||
NFA_State* nxt = (*x)[j];
|
||||
if ( ! nxt->Mark() )
|
||||
{
|
||||
states.append(nxt);
|
||||
states.push_back(nxt);
|
||||
nxt->SetMark(nxt);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ns->Accept() != NO_ACCEPT )
|
||||
epsclosure->append(ns);
|
||||
epsclosure->push_back(ns);
|
||||
}
|
||||
|
||||
else
|
||||
// Non-epsilon transition - keep it.
|
||||
epsclosure->append(ns);
|
||||
epsclosure->push_back(ns);
|
||||
}
|
||||
|
||||
// Clear out markers.
|
||||
|
@ -344,7 +344,7 @@ NFA_state_list* epsilon_closure(NFA_state_list* states)
|
|||
if ( ! closuremap.Contains(ns->ID()) )
|
||||
{
|
||||
closuremap.Insert(ns->ID());
|
||||
closure->append(ns);
|
||||
closure->push_back(ns);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue