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:
Robin Sommer 2014-10-31 17:42:21 -07:00 committed by Tim Wojtulewicz
parent 498a5314ed
commit 434f147932
3 changed files with 50 additions and 6 deletions

View file

@ -0,0 +1,10 @@
#include <vector>
class RE_Matcher;
namespace binpac {
std::vector<RE_Matcher*>* uncompiled_re_matchers = 0;
}