summaryrefslogtreecommitdiffhomepage
path: root/src/load.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-11-29 08:47:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-11-29 08:47:28 +0900
commit9c6398a444259a82b4ed531323b153bbce03af62 (patch)
treec5a2ba787a39c09434242f72eb83b180f8585489 /src/load.c
parent9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9 (diff)
downloadmruby-9c6398a444259a82b4ed531323b153bbce03af62.tar.gz
mruby-9c6398a444259a82b4ed531323b153bbce03af62.zip
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
Diffstat (limited to 'src/load.c')
-rw-r--r--src/load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/load.c b/src/load.c
index c60c393b8..dd7da725c 100644
--- a/src/load.c
+++ b/src/load.c
@@ -144,7 +144,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, uint32_t *len)
continue;
}
- irep->syms[i] = mrb_intern2(mrb, (char *)src, snl);
+ irep->syms[i] = mrb_intern(mrb, (char *)src, snl);
src += snl + 1;
mrb_gc_arena_restore(mrb, ai);
@@ -364,7 +364,7 @@ read_section_debug(mrb_state *mrb, const uint8_t *start, mrb_irep *irep)
for(i = 0; i < filenames_len; ++i) {
uint16_t f_len = bin_to_uint16(bin);
bin += sizeof(uint16_t);
- filenames[i] = mrb_intern2(mrb, (const char *)bin, f_len);
+ filenames[i] = mrb_intern(mrb, (const char *)bin, f_len);
bin += f_len;
}