diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-01 02:16:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-01 02:16:25 +0000 |
commit | e71d501ee0091e493f9eeefd8cb755ce315d70a1 (patch) | |
tree | 26271384272fbf72c76e97a9fb188bb8ee7863d7 /error.c | |
parent | d956526a76cd3b5aece69cbb444225c4d46d536e (diff) | |
download | ruby-e71d501ee0091e493f9eeefd8cb755ce315d70a1.tar.gz |
error.c: better names for rb_exc_new family
* error.c (rb_exc_new_cstr): rename from rb_exc_new2.
* error.c (rb_exc_new_str): rename from rb_exc_new3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -534,7 +534,7 @@ VALUE rb_eSystemCallError; VALUE rb_mErrno; static VALUE rb_eNOERROR; -#undef rb_exc_new2 +#undef rb_exc_new_cstr VALUE rb_exc_new(VALUE etype, const char *ptr, long len) @@ -543,13 +543,13 @@ rb_exc_new(VALUE etype, const char *ptr, long len) } VALUE -rb_exc_new2(VALUE etype, const char *s) +rb_exc_new_cstr(VALUE etype, const char *s) { return rb_exc_new(etype, s, strlen(s)); } VALUE -rb_exc_new3(VALUE etype, VALUE str) +rb_exc_new_str(VALUE etype, VALUE str) { StringValue(str); return rb_funcall(etype, rb_intern("new"), 1, str); |