summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 11:03:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 11:03:51 +0000
commitff9d9088329fc8270d1d9b89faf9187c33a854ac (patch)
tree83ba84ac1123313569f6a9613aef7bb8e0757585 /include/ruby
parentf6fbdf261e30763a6eb23ede963d555f16806b15 (diff)
downloadruby-ff9d9088329fc8270d1d9b89faf9187c33a854ac.tar.gz
* include/ruby/ruby.h (rb_bug_errno): declared.
* include/ruby/intern.h (rb_strerrno): declaration removed. * error.c (rb_strerrno): make it static. return NULL for unknown errors. (rb_bug_errno): defined. * thread_pthread.c: use rb_bug_errno. * signal.c (ruby_signal): use rb_bug_errno. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/intern.h1
-rw-r--r--include/ruby/ruby.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index d7ec07ddfc..fd37ecab2a 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -200,7 +200,6 @@ 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);
-const char *rb_strerrno(int);
/* eval.c */
int rb_sourceline(void);
const char *rb_sourcefile(void);
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 97ad41c70b..568d61ab47 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1100,6 +1100,7 @@ VALUE *rb_ruby_debug_ptr(void);
PRINTF_ARGS(NORETURN(void rb_raise(VALUE, const char*, ...)), 2, 3);
PRINTF_ARGS(NORETURN(void rb_fatal(const char*, ...)), 1, 2);
PRINTF_ARGS(NORETURN(void rb_bug(const char*, ...)), 1, 2);
+NORETURN(void rb_bug_errno(const char*, int));
NORETURN(void rb_sys_fail(const char*));
NORETURN(void rb_mod_sys_fail(VALUE, const char*));
NORETURN(void rb_iter_break(void));