mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Merge remote branch 'origin/topic/robin/logging-internals'
Includes some additional cleanup.
This commit is contained in:
commit
13a492091f
119 changed files with 5266 additions and 183 deletions
|
@ -113,9 +113,11 @@ TraversalCode Scope::Traverse(TraversalCallback* cb) const
|
|||
}
|
||||
|
||||
|
||||
ID* lookup_ID(const char* name, const char* curr_module, bool no_global)
|
||||
ID* lookup_ID(const char* name, const char* curr_module, bool no_global,
|
||||
bool same_module_only)
|
||||
{
|
||||
string fullname = make_full_var_name(curr_module, name);
|
||||
|
||||
string ID_module = extract_module_name(fullname.c_str());
|
||||
bool need_export = ID_module != GLOBAL_MODULE_NAME &&
|
||||
ID_module != curr_module;
|
||||
|
@ -134,7 +136,8 @@ ID* lookup_ID(const char* name, const char* curr_module, bool no_global)
|
|||
}
|
||||
}
|
||||
|
||||
if ( ! no_global )
|
||||
if ( ! no_global && (strcmp(GLOBAL_MODULE_NAME, curr_module) == 0 ||
|
||||
! same_module_only) )
|
||||
{
|
||||
string globalname = make_full_var_name(GLOBAL_MODULE_NAME, name);
|
||||
ID* id = global_scope()->Lookup(globalname.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue