mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Removing the EXPIRE_DFA_STATES code.
This commit is contained in:
parent
c92154994a
commit
8eb241fde7
4 changed files with 31 additions and 289 deletions
12
src/RE.h
12
src/RE.h
|
@ -19,6 +19,7 @@ class NFA_Machine;
|
|||
class DFA_Machine;
|
||||
class Specific_RE_Matcher;
|
||||
class RE_Matcher;
|
||||
class DFA_State;
|
||||
|
||||
declare(PDict,char);
|
||||
declare(PDict,CCL);
|
||||
|
@ -126,13 +127,6 @@ protected:
|
|||
AcceptingSet* accepted;
|
||||
};
|
||||
|
||||
#ifdef EXPIRE_DFA_STATES
|
||||
class DFA_State_Handle;
|
||||
#else
|
||||
class DFA_State;
|
||||
typedef DFA_State DFA_State_Handle;
|
||||
#endif
|
||||
|
||||
class RE_Match_State {
|
||||
public:
|
||||
RE_Match_State(Specific_RE_Matcher* matcher)
|
||||
|
@ -143,8 +137,6 @@ public:
|
|||
current_state = 0;
|
||||
}
|
||||
|
||||
~RE_Match_State();
|
||||
|
||||
const AcceptingSet* Accepted() const { return &accepted; }
|
||||
const int_list* MatchPositions() const { return &match_pos; }
|
||||
|
||||
|
@ -169,7 +161,7 @@ protected:
|
|||
|
||||
AcceptingSet accepted;
|
||||
int_list match_pos;
|
||||
DFA_State_Handle* current_state;
|
||||
DFA_State* current_state;
|
||||
int current_pos;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue