From 897340598920cdabb9c0638e4c3d777bf424ad97 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Sat, 3 Jul 2010 17:01:33 +0100 Subject: add some comments to pp_concat make it clearer what type of concat each code branch handles --- pp_hot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pp_hot.c') diff --git a/pp_hot.c b/pp_hot.c index 0e529215a3..6f48d5a88b 100644 --- a/pp_hot.c +++ b/pp_hot.c @@ -244,7 +244,7 @@ PP(pp_concat) rcopied = TRUE; } - if (TARG != left) { + if (TARG != left) { /* not $l .= $r */ STRLEN llen; const char* const lpv = SvPV_nomg_const(left, llen); lbyte = !DO_UTF8(left); @@ -254,9 +254,9 @@ PP(pp_concat) else SvUTF8_off(TARG); } - else { /* TARG == left */ + else { /* $l .= $r */ if (!SvOK(TARG)) { - if (left == right && ckWARN(WARN_UNINITIALIZED)) + if (left == right && ckWARN(WARN_UNINITIALIZED)) /* $l .= $l */ report_uninit(right); sv_setpvs(left, ""); } @@ -268,7 +268,7 @@ PP(pp_concat) if (!rcopied) { if (left == right) - /* $a.$a: do magic twice: tied might return different 2nd time */ + /* $r.$r: do magic twice: tied might return different 2nd time */ SvGETMAGIC(right); rpv = SvPV_nomg_const(right, rlen); rbyte = !DO_UTF8(right); -- cgit v1.2.1