We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent80cb646 commitf1a7239Copy full SHA for f1a7239
hyperscan.cpp
@@ -29,7 +29,6 @@ int main()
29
constchar* re{R"(\[([^ ]{8}) \| ([^\]]{19})\] \((?:[^,]+, )?\d+\) [^ ]+ \[([^\]]+)\] RQST END \[[^\]]+\] *(\d+) ms)"};
30
31
hs_database_t* database;
32
-hs_scratch_t* scratch;
33
hs_compile_error_t* compile_err;
34
35
if (hs_compile(re, HS_FLAG_DOTALL | HS_FLAG_SINGLEMATCH, HS_MODE_BLOCK,nullptr, &database, &compile_err) != HS_SUCCESS) {
@@ -38,6 +37,8 @@ int main()
38
37
return1;
39
}
40
+hs_scratch_t* scratch =nullptr;
41
+
42
if (hs_alloc_scratch(database, &scratch) != HS_SUCCESS) {
43
std::cout <<"Hyperscan unable to allocate scratch space." << std::endl;
44
hs_free_database(database);