diff options
| author | cubicdaiya <[email protected]> | 2014-02-26 03:03:47 +0900 |
|---|---|---|
| committer | cubicdaiya <[email protected]> | 2014-02-26 03:03:47 +0900 |
| commit | a860735d0c3cf25610ec02c463cf4bc239424966 (patch) | |
| tree | 06076142eeb3ed2f43f95704a1d59fbb7f472464 /mrbgems/mruby-proc-ext/src/proc.c | |
| parent | 6b3801c30d6d398024727c1065cac42407814a50 (diff) | |
| download | mruby-a860735d0c3cf25610ec02c463cf4bc239424966.tar.gz mruby-a860735d0c3cf25610ec02c463cf4bc239424966.zip | |
use mrb_str_cat_lit() more widely
Diffstat (limited to 'mrbgems/mruby-proc-ext/src/proc.c')
| -rw-r--r-- | mrbgems/mruby-proc-ext/src/proc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c index f27356bb7..3bb0d3570 100644 --- a/mrbgems/mruby-proc-ext/src/proc.c +++ b/mrbgems/mruby-proc-ext/src/proc.c @@ -39,29 +39,29 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self) if (!MRB_PROC_CFUNC_P(p)) { mrb_irep *irep = p->body.irep; - mrb_str_cat_cstr(mrb, str, "@"); + mrb_str_cat_lit(mrb, str, "@"); if (irep->filename) { mrb_str_cat_cstr(mrb, str, irep->filename); } else { - mrb_str_cat_cstr(mrb, str, "-"); + mrb_str_cat_lit(mrb, str, "-"); } - mrb_str_cat_cstr(mrb, str, ":"); + mrb_str_cat_lit(mrb, str, ":"); if (irep->lines) { mrb_str_append(mrb, str, mrb_fixnum_value(*irep->lines)); } else { - mrb_str_cat_cstr(mrb, str, "-"); + mrb_str_cat_lit(mrb, str, "-"); } } if (MRB_PROC_STRICT_P(p)) { - mrb_str_cat_cstr(mrb, str, " (lambda)"); + mrb_str_cat_lit(mrb, str, " (lambda)"); } - mrb_str_cat_cstr(mrb, str, ">"); + mrb_str_cat_lit(mrb, str, ">"); return str; } |
