1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* error.c (rb_strerrno): constified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-11-24 01:00:02 +00:00
parent 3861ba9f49
commit d7ffefb405
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Nov 24 10:00:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_strerrno): constified.
Tue Nov 24 09:49:31 2009 Tanaka Akira <akr@fsij.org> Tue Nov 24 09:49:31 2009 Tanaka Akira <akr@fsij.org>
* error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown * error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown

View file

@ -1258,7 +1258,7 @@ Init_syserr(void)
#undef undefined_error #undef undefined_error
} }
char * const char *
rb_strerrno(int err) rb_strerrno(int err)
{ {
if (err == 0) return "NOERROR"; if (err == 0) return "NOERROR";

View file

@ -200,7 +200,7 @@ PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2);
NORETURN(void rb_load_fail(const char*)); NORETURN(void rb_load_fail(const char*));
NORETURN(void rb_error_frozen(const char*)); NORETURN(void rb_error_frozen(const char*));
void rb_check_frozen(VALUE); void rb_check_frozen(VALUE);
char *rb_strerrno(int); const char *rb_strerrno(int);
/* eval.c */ /* eval.c */
int rb_sourceline(void); int rb_sourceline(void);
const char *rb_sourcefile(void); const char *rb_sourcefile(void);