summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-11-13 11:02:36 +0000
committerDavid Mitchell <davem@iabyn.com>2012-11-15 22:41:07 +0000
commit25e3aa3332bf90bf0b2b8dd3e9a7762d9da4fe8f (patch)
treeda2a471ee0ab46d27e8929f23be13d4eb6b58541 /pp_hot.c
parent17c916408b4fa9ea0f555e5583672e6aa22f49cf (diff)
downloadperl-25e3aa3332bf90bf0b2b8dd3e9a7762d9da4fe8f.tar.gz
pp_iter: reindent after removing if block
only whitespace changes
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 0645524420..719fef233b 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1919,23 +1919,23 @@ PP(pp_iter)
if (SvNIOK(cur) || SvCUR(cur) > maxlen)
RETPUSHNO;
- if (SvREFCNT(*itersvp) == 1 && !SvMAGICAL(*itersvp)) {
- /* safe to reuse old SV */
- sv_setsv(*itersvp, cur);
- }
- else
- {
- /* we need a fresh SV every time so that loop body sees a
- * completely new SV for closures/references to work as
- * they used to */
- oldsv = *itersvp;
- *itersvp = newSVsv(cur);
- SvREFCNT_dec(oldsv);
- }
- if (strEQ(SvPVX_const(cur), max))
- sv_setiv(cur, 0); /* terminate next time */
- else
- sv_inc(cur);
+ if (SvREFCNT(*itersvp) == 1 && !SvMAGICAL(*itersvp)) {
+ /* safe to reuse old SV */
+ sv_setsv(*itersvp, cur);
+ }
+ else
+ {
+ /* we need a fresh SV every time so that loop body sees a
+ * completely new SV for closures/references to work as
+ * they used to */
+ oldsv = *itersvp;
+ *itersvp = newSVsv(cur);
+ SvREFCNT_dec(oldsv);
+ }
+ if (strEQ(SvPVX_const(cur), max))
+ sv_setiv(cur, 0); /* terminate next time */
+ else
+ sv_inc(cur);
break;
}