summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 00:26:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 00:26:52 +0000
commit67b0e9665879945c9ca60cb836d804e941ad9b11 (patch)
tree42b1b2b8aace93b164b42288cae9c2a133c4773d /template
parent0f1a9218fe2716c0438d3ae6ea445b7ac09f5a8b (diff)
downloadruby-67b0e9665879945c9ca60cb836d804e941ad9b11.tar.gz
ruby-67b0e9665879945c9ca60cb836d804e941ad9b11.tar.xz
ruby-67b0e9665879945c9ca60cb836d804e941ad9b11.zip
* include/ruby/intern.h (rb_strerrno): declared.
* template/known_errors.inc.tmpl: generate defined_error() and undefined_error() instead of set_syserr. * error.c (Init_syserr): define defined_error() and undefined_error() to follow the above change. (rb_strerrno): defined. * thread_pthread.c: show error message and errno macro name with rb_bug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/known_errors.inc.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/known_errors.inc.tmpl b/template/known_errors.inc.tmpl
index c62114464..deb54e44d 100644
--- a/template/known_errors.inc.tmpl
+++ b/template/known_errors.inc.tmpl
@@ -7,8 +7,8 @@
% error_names = ARGF.read.split(/\s+/)
% error_names.each do |name|
#ifdef <%=name%>
- set_syserr(<%=name%>, "<%=name%>");
+ defined_error("<%=name%>", <%=name%>)
#else
- set_syserr(0, "<%=name%>");
+ undefined_error("<%=name%>")
#endif
% end