mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
support for record extensions when using -O gen-standalone-C++
This commit is contained in:
parent
300b3788e2
commit
960931ba5c
7 changed files with 64 additions and 9 deletions
|
@ -644,11 +644,15 @@ private:
|
|||
|
||||
class RecordTypeInfo : public AbstractTypeInfo {
|
||||
public:
|
||||
RecordTypeInfo(CPPCompile* c, TypePtr _t);
|
||||
RecordTypeInfo(CPPCompile* c, TypePtr _t, int _addl_fields);
|
||||
|
||||
void AddInitializerVals(std::vector<std::string>& ivs) const override;
|
||||
|
||||
private:
|
||||
// If non-zero, where additional fields begin. Only used for standalone
|
||||
// compilation.
|
||||
int addl_fields;
|
||||
|
||||
std::vector<std::string> field_names;
|
||||
std::vector<TypePtr> field_types;
|
||||
std::vector<int> field_attrs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue