diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-09 16:32:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-09 16:32:15 +0000 |
commit | 2032ff041c2b56dfdcd796fd2747c38dcdc99fdc (patch) | |
tree | 2a8489c6abdf8a08ea66231fbbdfc20224d0db44 /Porting/pumpkin.pod | |
parent | 97ea268b1482091665a2c54da30873227f203194 (diff) | |
download | perl-2032ff041c2b56dfdcd796fd2747c38dcdc99fdc.tar.gz |
Document how to re-indent.
p4raw-id: //depot/perl@17445
Diffstat (limited to 'Porting/pumpkin.pod')
-rw-r--r-- | Porting/pumpkin.pod | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 141a60a5f1..1ecab878dd 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 |