Mercurial > libdvdread4.hg
changeset 31:cd0187d307b4 src
cosmetics: sane indentation for case statements
taken from a patch by Jorgen Lundman, lundman lundman net
author | diego |
---|---|
date | Sun, 26 Oct 2008 22:16:30 +0000 |
parents | 80045db7439a |
children | 6698620c1477 |
files | dvd_udf.c |
diffstat | 1 files changed, 23 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/dvd_udf.c Thu Oct 09 22:04:24 2008 +0000 +++ b/dvd_udf.c Sun Oct 26 22:16:30 2008 +0000 @@ -448,19 +448,35 @@ p = 176 + L_EA; while( p < 176 + L_EA + L_AD ) { switch( flags & 0x0007 ) { - case 0: UDFShortAD( &data[ p ], ad, partition ); p += 8; break; - case 1: UDFLongAD( &data[ p ], ad ); p += 16; break; - case 2: UDFExtAD( &data[ p ], ad ); p += 20; break; + case 0: + UDFShortAD( &data[ p ], ad, partition ); + p += 8; + break; + case 1: + UDFLongAD( &data[ p ], ad ); + p += 16; + break; + case 2: + UDFExtAD( &data[ p ], ad ); + p += 20; + break; case 3: switch( L_AD ) { - case 8: UDFShortAD( &data[ p ], ad, partition ); break; - case 16: UDFLongAD( &data[ p ], ad ); break; - case 20: UDFExtAD( &data[ p ], ad ); break; + case 8: + UDFShortAD( &data[ p ], ad, partition ); + break; + case 16: + UDFLongAD( &data[ p ], ad ); + break; + case 20: + UDFExtAD( &data[ p ], ad ); + break; } p += L_AD; break; default: - p += L_AD; break; + p += L_AD; + break; } } return 0;