Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* 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
  • Loading branch information...
commit 064b70b60387d33f6d2e026477372699421d5c7e 1 parent 7193f4a
@znz znz authored
Showing with 9 additions and 5 deletions.
  1. +4 −0 ChangeLog
  2. +5 −5 vm_backtrace.c
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Fri Jun 15 20:54:28 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * vm_backtrace.c (backtrace_collect): rename from backtreace_collect.
+
Fri Jun 15 09:01:35 2012 Yuki Yugui Sonoda <yugui@google.com>
Fri Jun 15 19:22:13 2012 Koichi Sasada <ko1@atdot.net>
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.