diff options
author | David Mitchell <davem@iabyn.com> | 2015-01-21 12:16:21 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-01-21 12:42:34 +0000 |
commit | 7b52d6569c115e4522e1cbe14cfd730e60c84bf1 (patch) | |
tree | adf749373ce41b8f5e7d28ffd31e161842f052a6 /doio.c | |
parent | fa14274eb6699a6eabc280d644e7bdeaee02e336 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |