-O gen-C++ maintenance: fixes for attributes & initializing globals

This commit is contained in:
Vern Paxson 2022-10-14 08:37:45 -05:00
parent 6fcbb55ccd
commit 26dae9a5ae
9 changed files with 54 additions and 12 deletions

View file

@ -171,6 +171,9 @@ extern TableValPtr table_constructor__CPP(std::vector<ValPtr> indices, std::vect
TableTypePtr t, std::vector<int> attr_tags,
std::vector<ValPtr> attr_vals);
// Assigns a set of attributes to an identifier.
extern void assign_attrs__CPP(IDPtr id, std::vector<int> attr_tags, std::vector<ValPtr> attr_vals);
// Constructs a record of the given type, whose (ordered) fields are
// assigned to the corresponding elements of the given vector of values.
extern RecordValPtr record_constructor__CPP(std::vector<ValPtr> vals, RecordTypePtr t);