diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-10 14:14:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-10 14:14:13 +0000 |
commit | 55c0ed8ce52f5a0c9efbea1259b92e86214922f8 (patch) | |
tree | 1fb9ff677f19d5a30505ad8a529470cc46000953 /Porting | |
parent | f7e7bc433bd27536177abe998df51111ab543b7a (diff) | |
download | perl-55c0ed8ce52f5a0c9efbea1259b92e86214922f8.tar.gz |
More about the dangers of indent.
p4raw-id: //depot/perl@17465
Diffstat (limited to 'Porting')
-rw-r--r-- | Porting/pumpkin.pod | 11 |
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 |