summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-07-03 17:01:33 +0100
committerDavid Mitchell <davem@iabyn.com>2010-07-03 17:01:33 +0100
commit897340598920cdabb9c0638e4c3d777bf424ad97 (patch)
tree21f85e261728e2649f020b6a0242966c97ebeb58 /pp_hot.c
parent9077509c9b9bc1871867a5fba4351b95c670298d (diff)
downloadperl-897340598920cdabb9c0638e4c3d777bf424ad97.tar.gz
add some comments to pp_concat
make it clearer what type of concat each code branch handles
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c8
1 files changed, 4 insertions, 4 deletions
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);