mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
rename mrb_str_buf_append to mrb_str_cat_str
The new name is better and less confusing, because: - `mrb_str_append` calls `mrb_str_to_str` and this function doesn't - `mrb_str_buf_append` _is_ `mrb_str_cat` for `mrb_value` strings
This commit is contained in:
+1
-1
@@ -1929,7 +1929,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
mrb_value str = mrb_str_buf_new(mrb, 4);
|
||||
|
||||
mrb_str_cat_lit(mrb, str, "$");
|
||||
mrb_str_buf_append(mrb, str, mrb_fixnum_to_str(mrb, fix, 10));
|
||||
mrb_str_cat_str(mrb, str, mrb_fixnum_to_str(mrb, fix, 10));
|
||||
sym = new_sym(s, mrb_intern_str(mrb, str));
|
||||
genop(s, MKOP_ABx(OP_GETGLOBAL, cursp(), sym));
|
||||
push();
|
||||
|
||||
Reference in New Issue
Block a user