vim-patch:8.1.0192: executing regexp recursively fails with a crash

Problem:    Executing regexp recursively fails with a crash.
Solution:   Move global variables into "rex".
0270f38e1a
This commit is contained in:
Jan Edmund Lazo
2020-07-24 22:57:15 -04:00
parent f3964c170e
commit 1ab1de7845
3 changed files with 972 additions and 939 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -72,6 +72,7 @@ struct regprog {
unsigned regflags; unsigned regflags;
unsigned re_engine; ///< Automatic, backtracking or NFA engine. unsigned re_engine; ///< Automatic, backtracking or NFA engine.
unsigned re_flags; ///< Second argument for vim_regcomp(). unsigned re_flags; ///< Second argument for vim_regcomp().
bool re_in_use; ///< prog is being executed
}; };
/* /*
@@ -84,7 +85,8 @@ typedef struct {
regengine_T *engine; regengine_T *engine;
unsigned regflags; unsigned regflags;
unsigned re_engine; unsigned re_engine;
unsigned re_flags; ///< Second argument for vim_regcomp(). unsigned re_flags;
bool re_in_use;
int regstart; int regstart;
char_u reganch; char_u reganch;
@@ -114,7 +116,8 @@ typedef struct {
regengine_T *engine; regengine_T *engine;
unsigned regflags; unsigned regflags;
unsigned re_engine; unsigned re_engine;
unsigned re_flags; ///< Second argument for vim_regcomp(). unsigned re_flags;
bool re_in_use;
nfa_state_T *start; // points into state[] nfa_state_T *start; // points into state[]

File diff suppressed because it is too large Load Diff