mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Replace uses of the old Dict generation code with new template versions
This commit is contained in:
parent
e2feec52be
commit
50943a580c
26 changed files with 62 additions and 94 deletions
|
@ -15,8 +15,6 @@ class ID;
|
|||
class BroType;
|
||||
class ListVal;
|
||||
|
||||
declare(PDict,ID);
|
||||
|
||||
class Scope : public BroObj {
|
||||
public:
|
||||
explicit Scope(ID* id, attr_list* al);
|
||||
|
@ -35,11 +33,11 @@ public:
|
|||
BroType* ReturnType() const { return return_type; }
|
||||
|
||||
int Length() const { return local->Length(); }
|
||||
PDict(ID)* Vars() const { return local; }
|
||||
PDict<ID>* Vars() const { return local; }
|
||||
|
||||
ID* GenerateTemporary(const char* name);
|
||||
|
||||
PDict(ID)* GetIDs() const { return local; }
|
||||
PDict<ID>* GetIDs() const { return local; }
|
||||
|
||||
// Returns the list of variables needing initialization, and
|
||||
// removes it from this Scope.
|
||||
|
@ -56,7 +54,7 @@ protected:
|
|||
ID* scope_id;
|
||||
attr_list* attrs;
|
||||
BroType* return_type;
|
||||
PDict(ID)* local;
|
||||
PDict<ID>* local;
|
||||
id_list* inits;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue