diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:52:19 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:52:19 +0000 |
commit | 360b78e4dccf19971d7dc46a31fc55a2759e8762 (patch) | |
tree | b8e8211e3bf129703e54a384ccd4b40e0fd5e06d /vm.c | |
parent | 15abb96177f389efb5edbae1bf5fc7e39787610c (diff) | |
download | ruby-360b78e4dccf19971d7dc46a31fc55a2759e8762.tar.gz |
`rb_source_loc` -> `rb_source_location_cstr`
* vm.c (rb_source_loc): rename to rb_source_location_cstr()
to make behavior clear compare with rb_source_location().
* error.c (warning_string): use rb_source_location_cstr() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -356,7 +356,7 @@ rb_dtrace_setup(rb_execution_context_t *ec, VALUE klass, ID id, VALUE name = rb_class_path_no_cache(klass); const char *classname, *filename; const char *methodname = rb_id2name(id); - if (methodname && (filename = rb_source_loc(&args->line_no)) != 0) { + if (methodname && (filename = rb_source_location_cstr(&args->line_no)) != 0) { if (NIL_P(name) || !(classname = StringValuePtr(name))) classname = "<unknown>"; args->classname = classname; @@ -1298,7 +1298,7 @@ rb_source_location(int *pline) } const char * -rb_source_loc(int *pline) +rb_source_location_cstr(int *pline) { VALUE path = rb_source_location(pline); if (NIL_P(path)) return NULL; |