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:
parent
3861ba9f49
commit
d7ffefb405
3 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown
|
||||
|
|
2
error.c
2
error.c
|
@ -1258,7 +1258,7 @@ Init_syserr(void)
|
|||
#undef undefined_error
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
rb_strerrno(int err)
|
||||
{
|
||||
if (err == 0) return "NOERROR";
|
||||
|
|
|
@ -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_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);
|
||||
|
|
Loading…
Reference in a new issue