mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* regcomp.c (onig_compile): initialize ScanEnv.
mainly to initialize env->warnings_flag [ruby-dev:40196] * regparse.c (scan_env_clear): clear warnings_flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15ae29a714
commit
62f8c207b2
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
Thu Jan 28 09:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* regcomp.c (onig_compile): initialize ScanEnv.
|
||||
mainly to initialize env->warnings_flag [ruby-dev:40196]
|
||||
|
||||
* regparse.c (scan_env_clear): clear warnings_flag.
|
||||
|
||||
Wed Jan 27 23:33:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/matrix/test_matrix.rb, test/matrix/test_vector.rb: add some
|
||||
|
|
|
@ -5357,7 +5357,7 @@ onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
|
|||
|
||||
int r, init_size;
|
||||
Node* root;
|
||||
ScanEnv scan_env;
|
||||
ScanEnv scan_env = {0};
|
||||
#ifdef USE_SUBEXP_CALL
|
||||
UnsetAddrList uslist;
|
||||
#endif
|
||||
|
|
|
@ -956,6 +956,7 @@ scan_env_clear(ScanEnv* env)
|
|||
env->curr_max_regnum = 0;
|
||||
env->has_recursion = 0;
|
||||
#endif
|
||||
env->warnings_flag = 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in a new issue