mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-02 04:27:42 +03:00
nfa: switch to using bytecode_ptr<NFA>
This commit is contained in:
committed by
Matthew Barr
parent
905ac78061
commit
a197074c5d
@@ -403,10 +403,10 @@ bool is_slow(const raw_dfa &rdfa, const set<dstate_id_t> &accel,
|
||||
}
|
||||
|
||||
static
|
||||
aligned_unique_ptr<NFA> getDfa(raw_dfa &rdfa, const CompileContext &cc,
|
||||
const ReportManager &rm,
|
||||
set<dstate_id_t> &accel_states) {
|
||||
aligned_unique_ptr<NFA> dfa = nullptr;
|
||||
bytecode_ptr<NFA> getDfa(raw_dfa &rdfa, const CompileContext &cc,
|
||||
const ReportManager &rm,
|
||||
set<dstate_id_t> &accel_states) {
|
||||
bytecode_ptr<NFA> dfa = nullptr;
|
||||
if (cc.grey.allowSmallWriteSheng) {
|
||||
dfa = shengCompile(rdfa, cc, rm, &accel_states);
|
||||
}
|
||||
@@ -417,10 +417,9 @@ aligned_unique_ptr<NFA> getDfa(raw_dfa &rdfa, const CompileContext &cc,
|
||||
}
|
||||
|
||||
static
|
||||
aligned_unique_ptr<NFA> prepEngine(raw_dfa &rdfa, u32 roseQuality,
|
||||
const CompileContext &cc,
|
||||
const ReportManager &rm, u32 *start_offset,
|
||||
u32 *small_region) {
|
||||
bytecode_ptr<NFA> prepEngine(raw_dfa &rdfa, u32 roseQuality,
|
||||
const CompileContext &cc, const ReportManager &rm,
|
||||
u32 *start_offset, u32 *small_region) {
|
||||
*start_offset = remove_leading_dots(rdfa);
|
||||
|
||||
// Unleash the McClellan!
|
||||
|
Reference in New Issue
Block a user