ruby-changes:14083
From: nobu <ko1@a...>
Date: Tue, 24 Nov 2009 10:00:19 +0900 (JST)
Subject: [ruby-changes:14083] Ruby:r25896 (trunk): * error.c (rb_strerrno): constified.
nobu 2009-11-24 10:00:02 +0900 (Tue, 24 Nov 2009) New Revision: 25896 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25896 Log: * error.c (rb_strerrno): constified. Modified files: trunk/ChangeLog trunk/error.c trunk/include/ruby/intern.h Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 25895) +++ include/ruby/intern.h (revision 25896) @@ -200,7 +200,7 @@ NORETURN(void rb_load_fail(const char*)); NORETURN(void rb_error_frozen(const char*)); void rb_check_frozen(VALUE); -char *rb_strerrno(int); +const char *rb_strerrno(int); /* eval.c */ int rb_sourceline(void); const char *rb_sourcefile(void); Index: ChangeLog =================================================================== --- ChangeLog (revision 25895) +++ ChangeLog (revision 25896) @@ -1,3 +1,7 @@ +Tue Nov 24 10:00:00 2009 Nobuyoshi Nakada <nobu@r...> + + * error.c (rb_strerrno): constified. + Tue Nov 24 09:49:31 2009 Tanaka Akira <akr@f...> * error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown Index: error.c =================================================================== --- error.c (revision 25895) +++ error.c (revision 25896) @@ -1258,7 +1258,7 @@ #undef undefined_error } -char * +const char * rb_strerrno(int err) { if (err == 0) return "NOERROR"; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/