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 /internal.h | |
parent | 15abb96177f389efb5edbae1bf5fc7e39787610c (diff) |
`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 'internal.h')
-rw-r--r-- | internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.h b/internal.h index 7f8d95f64a..9d33ed99d1 100644 --- a/internal.h +++ b/internal.h @@ -1767,7 +1767,7 @@ void rb_vm_change_state(void); void rb_vm_inc_const_missing_count(void); const void **rb_vm_get_insns_address_table(void); VALUE rb_source_location(int *pline); -const char *rb_source_loc(int *pline); +const char *rb_source_location_cstr(int *pline); void rb_vm_pop_cfunc_frame(void); int rb_vm_add_root_module(ID id, VALUE module); void rb_vm_check_redefinition_by_prepend(VALUE klass); @@ -1944,7 +1944,7 @@ RUBY_SYMBOL_EXPORT_END do { \ if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \ int dtrace_line; \ - const char *dtrace_file = rb_source_loc(&dtrace_line); \ + const char *dtrace_file = rb_source_location_cstr(&dtrace_line); \ if (!dtrace_file) dtrace_file = ""; \ RUBY_DTRACE_##name(arg, dtrace_file, dtrace_line); \ } \ |