summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-15 12:01:45 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-15 12:01:45 +0000
commit064b70b60387d33f6d2e026477372699421d5c7e (patch)
treeeb49b6fc78999c62bacaa3f7ae5c21e6687e594f /vm_backtrace.c
parent7193f4ae280f55385a0f794884a846fb9398b03a (diff)
* vm_backtrace.c (backtrace_collect): rename from backtreace_collect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 47ae7f1..c4fbaba 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -467,13 +467,13 @@ rb_vm_backtrace_object(void)
}
static VALUE
-backtreace_collect(rb_backtrace_t *bt, int lev, int n, VALUE (*func)(rb_backtrace_location_t *, void *arg), void *arg)
+backtrace_collect(rb_backtrace_t *bt, int lev, int n, VALUE (*func)(rb_backtrace_location_t *, void *arg), void *arg)
{
VALUE btary;
int i;
if (UNLIKELY(lev < 0 || n < 0)) {
- rb_bug("backtreace_collect: unreachable");
+ rb_bug("backtrace_collect: unreachable");
}
btary = rb_ary_new();
@@ -502,7 +502,7 @@ rb_backtrace_to_str_ary(VALUE self)
return bt->strary;
}
else {
- bt->strary = backtreace_collect(bt, 0, bt->backtrace_size, location_to_str_dmyarg, 0);
+ bt->strary = backtrace_collect(bt, 0, bt->backtrace_size, location_to_str_dmyarg, 0);
return bt->strary;
}
}
@@ -522,7 +522,7 @@ backtrace_to_str_ary2(VALUE self, int lev, int n)
return Qnil;
}
- return backtreace_collect(bt, lev, n, location_to_str_dmyarg, 0);
+ return backtrace_collect(bt, lev, n, location_to_str_dmyarg, 0);
}
static VALUE
@@ -553,7 +553,7 @@ backtrace_to_frame_ary(VALUE self, int lev, int n)
return Qnil;
}
- return backtreace_collect(bt, lev, n, location_create, (void *)self);
+ return backtrace_collect(bt, lev, n, location_create, (void *)self);
}
static VALUE