mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Rename Frame::IncreaseOffset() to Frame::AdjustOffset()
For clarity, since it's used for both increasing and decreasing.
This commit is contained in:
parent
7393fc6d24
commit
2219a03344
2 changed files with 5 additions and 5 deletions
|
@ -479,7 +479,7 @@ ValPtr InlineExpr::Eval(Frame* f) const
|
|||
int nargs = args->Exprs().length();
|
||||
|
||||
f->Reset(frame_offset + nargs);
|
||||
f->IncreaseOffset(frame_offset);
|
||||
f->AdjustOffset(frame_offset);
|
||||
|
||||
// Assign the arguments.
|
||||
for ( auto i = 0; i < nargs; ++i )
|
||||
|
@ -494,11 +494,11 @@ ValPtr InlineExpr::Eval(Frame* f) const
|
|||
|
||||
catch ( InterpreterException& e )
|
||||
{
|
||||
f->IncreaseOffset(-frame_offset);
|
||||
f->AdjustOffset(-frame_offset);
|
||||
throw;
|
||||
}
|
||||
|
||||
f->IncreaseOffset(-frame_offset);
|
||||
f->AdjustOffset(-frame_offset);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue