mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
GH-572: Mark MemoryAllocation() and related methods deprecated
This commit is contained in:
parent
e6e41ac5d9
commit
a7fd34375f
31 changed files with 158 additions and 6 deletions
|
@ -157,9 +157,12 @@ void NFA_State::Dump(FILE* f)
|
|||
|
||||
unsigned int NFA_State::TotalMemoryAllocation() const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return padded_sizeof(*this)
|
||||
+ xtions.MemoryAllocation() - padded_sizeof(xtions)
|
||||
+ (epsclosure ? epsclosure->MemoryAllocation() : 0);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
NFA_Machine::NFA_Machine(NFA_State* first, NFA_State* final)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue