From: Jarkko Hietaniemi Date: Tue, 9 Jul 2002 16:32:15 +0000 (+0000) Subject: Document how to re-indent. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2032ff041c2b56dfdcd796fd2747c38dcdc99fdc;p=p5sagit%2Fp5-mst-13.2.git Document how to re-indent. p4raw-id: //depot/perl@17445 --- diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 141a60a..1ecab87 100644 --- a/Porting/pumpkin.pod +++ b/Porting/pumpkin.pod @@ -1277,6 +1277,20 @@ Anyway, all this leads to quite obscure failures that are sure to drive casual users crazy. Even experienced users will get confused :-). Upon reflection, I'd say leave libperl.so in $archlib. +=item 4. + +Indentation style: over the years Perl has become a mishmash of +various indentation styles, but the original "Larry style" can +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(). + =back =head1 Upload Your Work to CPAN