ruby-changes:4042
From: ko1@a...
Date: Mon, 18 Feb 2008 11:52:37 +0900 (JST)
Subject: [ruby-changes:4042] akr - Ruby:r15532 (trunk): * re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.
akr 2008-02-18 11:52:10 +0900 (Mon, 18 Feb 2008)
New Revision: 15532
Modified files:
trunk/ChangeLog
trunk/re.c
Log:
* re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15532&r2=15531&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=15532&r2=15531&diff_format=u
Index: re.c
===================================================================
--- re.c (revision 15531)
+++ re.c (revision 15532)
@@ -3151,6 +3151,10 @@
return match_getter();
}
+static void
+re_warn(const char* s) {
+ rb_warn("%s" ,s);
+}
/*
* Document-class: Regexp
@@ -3169,6 +3173,8 @@
onigenc_set_default_caseconv_table((UChar*)casetable);
onigenc_set_default_encoding(ONIG_ENCODING_ASCII);
+ onig_set_warn_func(re_warn);
+ onig_set_verb_warn_func(re_warn);
rb_define_virtual_variable("$~", match_getter, match_setter);
rb_define_virtual_variable("$&", last_match_getter, 0);
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15531)
+++ ChangeLog (revision 15532)
@@ -1,3 +1,7 @@
+Mon Feb 18 11:51:19 2008 Tanaka Akira <akr@f...>
+
+ * re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.
+
Mon Feb 18 10:17:42 2008 Nobuyoshi Nakada <nobu@r...>
* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/