mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
chimera: hybrid of Hyperscan and PCRE
This commit is contained in:
@@ -46,7 +46,7 @@ using namespace std;
|
||||
|
||||
namespace ue2 {
|
||||
|
||||
u32 mmbit_size(u32 total_bits) {
|
||||
u32 HS_CDECL mmbit_size(u32 total_bits) {
|
||||
if (total_bits > MMB_MAX_BITS) {
|
||||
throw ResourceLimitError();
|
||||
}
|
||||
|
@@ -33,6 +33,7 @@
|
||||
#ifndef MULTIBIT_BUILD_H
|
||||
#define MULTIBIT_BUILD_H
|
||||
|
||||
#include "hs_common.h"
|
||||
#include "multibit_internal.h"
|
||||
#include "hash.h"
|
||||
|
||||
@@ -62,8 +63,10 @@ namespace ue2 {
|
||||
*
|
||||
* This will throw a resource limit assertion if the requested mmbit is too
|
||||
* large.
|
||||
*
|
||||
* TODO:add temporary HS_CDECL for chimera on Windows, need improve this.
|
||||
*/
|
||||
u32 mmbit_size(u32 total_bits);
|
||||
u32 HS_CDECL mmbit_size(u32 total_bits);
|
||||
|
||||
/** \brief Construct a sparse iterator over the values in \a bits for a
|
||||
* multibit of size \a total_bits. */
|
||||
|
Reference in New Issue
Block a user