tracking of original size of records (pre redef'ing)

This commit is contained in:
Vern Paxson 2021-04-01 17:38:31 -07:00
parent 6e8baafeb9
commit 45004872e8
2 changed files with 8 additions and 0 deletions

View file

@ -611,6 +611,7 @@ public:
{ return managed_fields; }
int NumFields() const { return num_fields; }
int NumOrigFields() const { return num_orig_fields; }
/**
* Returns a "record_field_table" value for introspection purposes.
@ -654,7 +655,12 @@ protected:
// use std::bitset here instead.
std::vector<bool> managed_fields;
// Number of fields in the type.
int num_fields;
// Number of fields in the type when originally declared.
int num_orig_fields;
type_decl_list* types;
};