From: Jarkko Hietaniemi Date: Wed, 10 Jul 2002 14:14:13 +0000 (+0000) Subject: More about the dangers of indent. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=55c0ed8ce52f5a0c9efbea1259b92e86214922f8;p=p5sagit%2Fp5-mst-13.2.git More about the dangers of indent. p4raw-id: //depot/perl@17465 --- diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 1ecab87..cff54cd 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