mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Adding a new binpac::init() function that must be called by the host
before anything else. Internally, this function compiles all regular expressions, avoiding to that inside the regexp constructore. The code is a bit hackish due to the way the regexp code depends on the Bro header.
This commit is contained in:
parent
498a5314ed
commit
434f147932
3 changed files with 50 additions and 6 deletions
|
@ -0,0 +1,10 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
class RE_Matcher;
|
||||
|
||||
namespace binpac {
|
||||
|
||||
std::vector<RE_Matcher*>* uncompiled_re_matchers = 0;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue