diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-23 15:55:55 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-23 15:55:55 +0900 |
| commit | 92821cf2ef3039cda71d3fc782f23a2a1a2134eb (patch) | |
| tree | fdbcd36b3a21cbd3b756c2cd35b8b823c247e9f9 /src/error.c | |
| parent | acab35a2a54e00e197b7372e940b83235480179d (diff) | |
| download | mruby-92821cf2ef3039cda71d3fc782f23a2a1a2134eb.tar.gz mruby-92821cf2ef3039cda71d3fc782f23a2a1a2134eb.zip | |
Use mrb_str_cat() instead of mrb_str_cat2() as possible.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/error.c b/src/error.c index 7cb6b53ef..6edff6f03 100644 --- a/src/error.c +++ b/src/error.c @@ -129,25 +129,25 @@ exc_inspect(mrb_state *mrb, mrb_value exc) if (!mrb_nil_p(file) && !mrb_nil_p(line)) { str = file; - mrb_str_cat2(mrb, str, ":"); + mrb_str_cat(mrb, str, ":", 1); mrb_str_append(mrb, str, line); - mrb_str_cat2(mrb, str, ": "); + mrb_str_cat(mrb, str, ": ", 2); if (!mrb_nil_p(mesg) && RSTRING_LEN(mesg) > 0) { mrb_str_append(mrb, str, mesg); - mrb_str_cat2(mrb, str, " ("); + mrb_str_cat(mrb, str, " (", 2); } mrb_str_cat2(mrb, str, mrb_obj_classname(mrb, exc)); if (!mrb_nil_p(mesg) && RSTRING_LEN(mesg) > 0) { - mrb_str_cat2(mrb, str, ")"); + mrb_str_cat(mrb, str, ")", 1); } } else { str = mrb_str_new_cstr(mrb, mrb_obj_classname(mrb, exc)); if (!mrb_nil_p(mesg) && RSTRING_LEN(mesg) > 0) { - mrb_str_cat2(mrb, str, ": "); + mrb_str_cat(mrb, str, ": ", 2); mrb_str_append(mrb, str, mesg); } else { - mrb_str_cat2(mrb, str, ": "); + mrb_str_cat(mrb, str, ": ", 2); mrb_str_cat2(mrb, str, mrb_obj_classname(mrb, exc)); } } |
