summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm.c8
-rw-r--r--vm_dump.c8
3 files changed, 12 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index bdeb91564b..7a2e579b97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 21 11:35:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_dump.c: fix typo.
+
Fri Dec 21 11:28:00 2007 Tanaka Akira <akr@fsij.org>
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
diff --git a/vm.c b/vm.c
index 1ad9c7bfa3..e630331b7f 100644
--- a/vm.c
+++ b/vm.c
@@ -1777,10 +1777,10 @@ Init_VM(void)
rb_undef_alloc_func(rb_cThread);
rb_define_method(rb_cThread, "initialize", ruby_thread_init, 0);
- /* ::VM::USAGE_ANALISYS_* */
- rb_define_const(rb_cVM, "USAGE_ANALISYS_INSN", rb_hash_new());
- rb_define_const(rb_cVM, "USAGE_ANALISYS_REGS", rb_hash_new());
- rb_define_const(rb_cVM, "USAGE_ANALISYS_INSN_BIGRAM", rb_hash_new());
+ /* ::VM::USAGE_ANALYSIS_* */
+ rb_define_const(rb_cVM, "USAGE_ANALYSIS_INSN", rb_hash_new());
+ rb_define_const(rb_cVM, "USAGE_ANALYSIS_REGS", rb_hash_new());
+ rb_define_const(rb_cVM, "USAGE_ANALYSIS_INSN_BIGRAM", rb_hash_new());
rb_define_const(rb_cVM, "OPTS", opts = rb_ary_new());
#if OPT_DIRECT_THREADED_CODE
diff --git a/vm_dump.c b/vm_dump.c
index be65f553ed..eb10261896 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -426,8 +426,8 @@ vm_analysis_insn(int insn)
VALUE cv;
if (usage_hash == 0) {
- usage_hash = rb_intern("USAGE_ANALISYS_INSN");
- bigram_hash = rb_intern("USAGE_ANALISYS_INSN_BIGRAM");
+ usage_hash = rb_intern("USAGE_ANALYSIS_INSN");
+ bigram_hash = rb_intern("USAGE_ANALYSIS_INSN_BIGRAM");
}
uh = rb_const_get(rb_cVM, usage_hash);
if ((ihash = rb_hash_aref(uh, INT2FIX(insn))) == Qnil) {
@@ -474,7 +474,7 @@ vm_analysis_operand(int insn, int n, VALUE op)
VALUE cv;
if (usage_hash == 0) {
- usage_hash = rb_intern("USAGE_ANALISYS_INSN");
+ usage_hash = rb_intern("USAGE_ANALYSIS_INSN");
}
uh = rb_const_get(rb_cVM, usage_hash);
@@ -524,7 +524,7 @@ vm_analysis_register(int reg, int isset)
char buff[0x10];
int i;
- usage_hash = rb_intern("USAGE_ANALISYS_REGS");
+ usage_hash = rb_intern("USAGE_ANALYSIS_REGS");
for (i = 0; i < sizeof(regstrs) / sizeof(regstrs[0]); i++) {
int j;