summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-01-21 12:16:21 +0000
committerDavid Mitchell <davem@iabyn.com>2015-01-21 12:42:34 +0000
commit7b52d6569c115e4522e1cbe14cfd730e60c84bf1 (patch)
treeadf749373ce41b8f5e7d28ffd31e161842f052a6 /doio.c
parentfa14274eb6699a6eabc280d644e7bdeaee02e336 (diff)
downloadperl-7b52d6569c115e4522e1cbe14cfd730e60c84bf1.tar.gz
avoid C labels in column 0
Generally the guideline is to outdent C labels (e.g. 'foo:') 2 columns from the surrounding code. If the label starts at column zero, then it means that diffs, such as those generated by git, display the label rather than the function name at the head of a diff block: which makes diffs harder to peruse.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doio.c b/doio.c
index b84a14a096..a63f2a229b 100644
--- a/doio.c
+++ b/doio.c
@@ -790,7 +790,7 @@ S_openn_cleanup(pTHX_ GV *gv, IO *io, PerlIO *fp, char *mode, const char *oname,
}
return TRUE;
-say_false:
+ say_false:
IoIFP(io) = saveifp;
IoOFP(io) = saveofp;
IoTYPE(io) = savetype;
@@ -1246,7 +1246,7 @@ Perl_mode_from_discipline(pTHX_ const char *s, STRLEN len)
}
else {
const char *end;
-fail_discipline:
+ fail_discipline:
end = strchr(s+1, ':');
if (!end)
end = s+len;