summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-07-10 14:14:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-10 14:14:13 +0000
commit55c0ed8ce52f5a0c9efbea1259b92e86214922f8 (patch)
tree1fb9ff677f19d5a30505ad8a529470cc46000953 /Porting
parentf7e7bc433bd27536177abe998df51111ab543b7a (diff)
downloadperl-55c0ed8ce52f5a0c9efbea1259b92e86214922f8.tar.gz
More about the dangers of indent.
p4raw-id: //depot/perl@17465
Diffstat (limited to 'Porting')
-rw-r--r--Porting/pumpkin.pod11
1 files changed, 6 insertions, 5 deletions
diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod
index 1ecab878dd..cff54cdf10 100644
--- a/Porting/pumpkin.pod
+++ b/Porting/pumpkin.pod
@@ -1285,11 +1285,12 @@ probably be restored with (GNU) indent somewhat like this:
indent -kr -nce -psl -sc
-More full solution would also specify a list of Perl specific types
-with -TSV -TAV -THV .. -TMAGIC -TPerlIO ... but that list would be
-quite ungainly. Also note that GNU indent also doesn't do aligning
-of assignments, which would truly wreck the indentation in places
-like sv.c:Perl_sv_upgrade().
+A more ambitious solution would also specify a list of Perl specific
+types with -TSV -TAV -THV .. -TMAGIC -TPerlIO ... but that list would
+be quite ungainly. Also note that GNU indent also doesn't do aligning
+of consecutive assignments, which would truly wreck the layout in
+places like sv.c:Perl_sv_upgrade() or sv.c:Perl_clone_using().
+Similarly nicely aligned &&s, ||s and ==s would not be respected.
=back