From 360b78e4dccf19971d7dc46a31fc55a2759e8762 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 05:52:19 +0000 Subject: `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 --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.h') 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); \ } \ -- cgit v1.2.3