mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
script_opt: Use Func::GetName()
This commit is contained in:
parent
89127722ea
commit
71e9c8d436
16 changed files with 49 additions and 48 deletions
|
@ -282,15 +282,15 @@ void CPPCompile::GenStandaloneActivation() {
|
|||
hashes = "{" + hashes + "}";
|
||||
|
||||
auto f = fb.first;
|
||||
auto fn = f->Name();
|
||||
const auto& fn = f->GetName();
|
||||
const auto& ft = f->GetType();
|
||||
|
||||
auto var = extract_var_name(fn);
|
||||
auto mod = extract_module_name(fn);
|
||||
auto var = extract_var_name(fn.c_str());
|
||||
auto mod = extract_module_name(fn.c_str());
|
||||
|
||||
auto fid = lookup_ID(var.c_str(), mod.c_str(), false, true, false);
|
||||
if ( ! fid )
|
||||
reporter->InternalError("can't find identifier %s", fn);
|
||||
reporter->InternalError("can't find identifier %s", fn.c_str());
|
||||
|
||||
auto exported = fid->IsExport() ? "true" : "false";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue