mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Separate declaration of binpac::init from definition.
When friend'ing a global function via qualified-id, Clang complains if it's not been previously declared.
This commit is contained in:
parent
434f147932
commit
db1c70b32e
1 changed files with 6 additions and 4 deletions
|
@ -9,6 +9,12 @@ class RE_Matcher;
|
|||
namespace binpac
|
||||
{
|
||||
|
||||
// Must be called before any binpac functionality is used.
|
||||
//
|
||||
// Note, this must be declared/defined here, and inline, because the RE
|
||||
// functionality can only be used when compiling from inside Bro.
|
||||
inline void init();
|
||||
|
||||
// Internal vector recording not yet compiled matchers.
|
||||
extern std::vector<RE_Matcher*>* uncompiled_re_matchers;
|
||||
|
||||
|
@ -62,10 +68,6 @@ inline void RegExMatcher::init()
|
|||
uncompiled_re_matchers->clear();
|
||||
}
|
||||
|
||||
// Must be called before any binpac functionality is used.
|
||||
//
|
||||
// Note, this must be defined here, and inline, because the RE functionality
|
||||
// can only be used when compiling from inside Bro.
|
||||
inline void init()
|
||||
{
|
||||
RegExMatcher::init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue