mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Move the bifcl code into the main Zeek repository
This is based on commit 5947749f7850b075f11d6a2aaefe7dad4f63cb62f from the bifcl repository.
This commit is contained in:
parent
cd1414ab69
commit
68926faf47
12 changed files with 1568 additions and 6 deletions
19
tools/bifcl/include/module_util.h
Normal file
19
tools/bifcl/include/module_util.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
//
|
||||
// These functions are used by both Zeek and bifcl.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
static constexpr const char* GLOBAL_MODULE_NAME = "GLOBAL";
|
||||
|
||||
extern std::string extract_module_name(const char* name);
|
||||
extern std::string extract_var_name(const char* name);
|
||||
extern std::string normalized_module_name(const char* module_name); // w/o ::
|
||||
|
||||
// Concatenates module_name::var_name unless var_name is already fully
|
||||
// qualified, in which case it is returned unmodified.
|
||||
extern std::string make_full_var_name(const char* module_name, const char* var_name);
|
Loading…
Add table
Add a link
Reference in a new issue