mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
use a subclass of TableType for incremental construction of compiled scripts
This commit is contained in:
parent
c0dd2b4e81
commit
a934acc4f1
3 changed files with 17 additions and 12 deletions
|
@ -272,7 +272,7 @@ void CPP_TypeInits::PreInit(InitsManager* im, int offset, ValElemVec& init_vals)
|
|||
}
|
||||
|
||||
else if ( tag == TYPE_TABLE )
|
||||
inits_vec[offset] = make_intrusive<TableType>(nullptr, nullptr);
|
||||
inits_vec[offset] = make_intrusive<CPPTableType>();
|
||||
|
||||
// else no pre-initialization needed
|
||||
}
|
||||
|
@ -399,7 +399,7 @@ TypePtr CPP_TypeInits::BuildTypeList(InitsManager* im, ValElemVec& init_vals, in
|
|||
|
||||
TypePtr CPP_TypeInits::BuildTableType(InitsManager* im, ValElemVec& init_vals, int offset) const
|
||||
{
|
||||
auto t = cast_intrusive<TableType>(inits_vec[offset]);
|
||||
auto t = cast_intrusive<CPPTableType>(inits_vec[offset]);
|
||||
ASSERT(t);
|
||||
|
||||
auto index = cast_intrusive<TypeList>(im->Types(init_vals[1]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue