ruby-changes:18504
From: kosaki <ko1@a...>
Date: Wed, 12 Jan 2011 23:22:49 +0900 (JST)
Subject: [ruby-changes:18504] Ruby:r30527 (trunk): * io.c (rb_f_syscall): Add warning messages.
kosaki 2011-01-12 23:22:39 +0900 (Wed, 12 Jan 2011) New Revision: 30527 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30527 Log: * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30526) +++ ChangeLog (revision 30527) @@ -1,3 +1,7 @@ +Thu Jan 13 00:06:38 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062] + Thu Jan 13 00:00:07 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * io.c (rb_f_syscall): Some syscall return unsigned or pointer value. Index: io.c =================================================================== --- io.c (revision 30526) +++ io.c (revision 30527) @@ -7858,6 +7858,10 @@ int num, retval = -1; #endif int i; + + if (RTEST(ruby_verbose)) { + rb_warning("We plan to remove a syscall function at future release. DL(Fiddle) provides safer alternative."); + } rb_secure(2); if (argc == 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/