mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
convert scopes to be managed using IntrusivePtr's
This commit is contained in:
parent
f2f041b63b
commit
efd03d41f8
16 changed files with 41 additions and 48 deletions
|
@ -96,12 +96,12 @@ extern IDPtr install_ID(
|
|||
bool is_global, bool is_export);
|
||||
|
||||
extern void push_scope(IDPtr id, std::unique_ptr<std::vector<AttrPtr>> attrs);
|
||||
extern void push_existing_scope(Scope* scope);
|
||||
extern void push_existing_scope(ScopePtr scope);
|
||||
|
||||
// Returns the one popped off.
|
||||
extern ScopePtr pop_scope();
|
||||
extern Scope* current_scope();
|
||||
extern Scope* global_scope();
|
||||
extern ScopePtr current_scope();
|
||||
extern ScopePtr global_scope();
|
||||
|
||||
// Current module (identified by its name).
|
||||
extern std::string current_module;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue