[前][次][番号順一覧][スレッド一覧]

ruby-changes:14613

From: naruse <ko1@a...>
Date: Thu, 28 Jan 2010 10:02:58 +0900 (JST)
Subject: [ruby-changes:14613] Ruby:r26458 (trunk): * regcomp.c (onig_compile): initialize ScanEnv.

naruse	2010-01-28 09:50:17 +0900 (Thu, 28 Jan 2010)

  New Revision: 26458

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26458

  Log:
    * regcomp.c (onig_compile): initialize ScanEnv.
      mainly to initialize env->warnings_flag [ruby-dev:40196]
    
    * regparse.c (scan_env_clear): clear warnings_flag.

  Modified files:
    trunk/ChangeLog
    trunk/regcomp.c
    trunk/regparse.c

Index: regparse.c
===================================================================
--- regparse.c	(revision 26457)
+++ regparse.c	(revision 26458)
@@ -956,6 +956,7 @@
   env->curr_max_regnum     = 0;
   env->has_recursion       = 0;
 #endif
+  env->warnings_flag       = 0;
 }
 
 static int
Index: regcomp.c
===================================================================
--- regcomp.c	(revision 26457)
+++ regcomp.c	(revision 26458)
@@ -5357,7 +5357,7 @@
 
   int r, init_size;
   Node*  root;
-  ScanEnv  scan_env;
+  ScanEnv  scan_env = {0};
 #ifdef USE_SUBEXP_CALL
   UnsetAddrList  uslist;
 #endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26457)
+++ ChangeLog	(revision 26458)
@@ -1,3 +1,10 @@
+Thu Jan 28 09:44:19 2010  NARUSE, Yui  <naruse@r...>
+
+	* 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@t...>
 
 	* test/matrix/test_matrix.rb, test/matrix/test_vector.rb: add some

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]