Val: forward-declare class PDict, reduce includes

This commit is contained in:
Max Kellermann 2020-02-11 10:32:46 +01:00
parent dfac4572e7
commit 4aac78cf29
6 changed files with 14 additions and 2 deletions

View file

@ -14,6 +14,7 @@
#include <stdlib.h>
#include "Attr.h"
#include "Dict.h"
#include "Net.h"
#include "File.h"
#include "Func.h"
@ -1357,6 +1358,11 @@ void TableVal::RemoveAll()
val.table_val->SetDeleteFunc(table_entry_val_delete_func);
}
int TableVal::Size() const
{
return AsTable()->Length();
}
int TableVal::RecursiveSize() const
{
int n = AsTable()->Length();