From: <ai...@us...> - 2010-01-08 01:14:10
|
Revision: 10744 http://plplot.svn.sourceforge.net/plplot/?rev=10744&view=rev Author: airwin Date: 2010-01-08 01:14:04 +0000 (Fri, 08 Jan 2010) Log Message: ----------- uncrustify 0.55 styling changes. Modified Paths: -------------- trunk/drivers/aqt.c trunk/drivers/wingcc.c trunk/examples/c++/x01cc.cc trunk/examples/d/x04d.d trunk/lib/qsastime/bhunt_search_test.c trunk/lib/qsastime/qsastime.c trunk/src/plot3d.c trunk/src/plvpor.c Modified: trunk/drivers/aqt.c =================================================================== --- trunk/drivers/aqt.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/drivers/aqt.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -284,8 +284,8 @@ if ( !didTests ) { - hasShear = [adapter respondsToSelector:@selector( addLabel:atPoint:angle:shearAngle:align:)]; - hasAlpha = [adapter respondsToSelector:@selector( setColorRed:green:blue:alpha:)]; + hasShear = [adapter respondsToSelector:@selector( addLabel:atPoint:angle:shearAngle:align: )]; + hasAlpha = [adapter respondsToSelector:@selector( setColorRed:green:blue:alpha: )]; didTests = true; } } Modified: trunk/drivers/wingcc.c =================================================================== --- trunk/drivers/wingcc.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/drivers/wingcc.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -169,10 +169,10 @@ #define Debug2 if ( pls->debug ) printf #define Debug3 if ( pls->debug ) printf #else - #define Verbose(... ) do { if ( pls->verbose ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) - #define Debug(... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) - #define Debug2(... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) - #define Debug3(... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) + #define Verbose( ... ) do { if ( pls->verbose ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) + #define Debug( ... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) + #define Debug2( ... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) + #define Debug3( ... ) do { if ( pls->debug ) { fprintf( stderr, __VA_ARGS__ ); } } while ( 0 ) #endif #define ReportWinError() do { \ Modified: trunk/examples/c++/x01cc.cc =================================================================== --- trunk/examples/c++/x01cc.cc 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/examples/c++/x01cc.cc 2010-01-08 01:14:04 UTC (rev 10744) @@ -47,7 +47,7 @@ Matrix( int _nx, int _ny ) : nx( _nx ), ny( _ny ) { v = new PLFLT[nx * ny]; } ~Matrix() { delete[] v; } - PLFLT& operator()( int i, int j ) + PLFLT & operator()( int i, int j ) { // Should do bounds checking, pass for now. return v[ j * ny + i ]; @@ -89,7 +89,7 @@ else _ny = ny; } - PLFLT& operator()( int i, int j ) + PLFLT & operator()( int i, int j ) { if ( wrapy ) j %= ny; return m( i, j ); @@ -121,7 +121,7 @@ return m( ix, iy ); } - PLFLT& operator()( int ix, int iy ) + PLFLT & operator()( int ix, int iy ) { if ( wrapy ) iy %= ny; return m( ix, iy ); Modified: trunk/examples/d/x04d.d =================================================================== --- trunk/examples/d/x04d.d 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/examples/d/x04d.d 2010-01-08 01:14:04 UTC (rev 10744) @@ -44,7 +44,7 @@ /* Set up data for log plot */ f0 = 1.0; - for ( size_t i = 0; i <= 100; i++ ) + for ( size_t i = 0; i <= 100; i++ ) { freql[i] = -2.0 + i / 20.0; freq = pow( 10.0, freql[i] ); Modified: trunk/lib/qsastime/bhunt_search_test.c =================================================================== --- trunk/lib/qsastime/bhunt_search_test.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/lib/qsastime/bhunt_search_test.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -78,7 +78,7 @@ test = offset + (double) j / (double) multiplier; if ( !ifhunt ) index = -40; - bhunt_search( &test, table, ntable, sizeof ( double ), &index, ( int( * ) ( const void *, const void * ))gedouble ); + bhunt_search( &test, table, ntable, sizeof ( double ), &index, ( int ( * )( const void *, const void * ))gedouble ); if ( index < -1 || index > ntable - 1 ) { printf( "ERROR: test = %20.16f lead to an invalid index of %i\n", test, index ); Modified: trunk/lib/qsastime/qsastime.c =================================================================== --- trunk/lib/qsastime/qsastime.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/lib/qsastime/qsastime.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -1008,7 +1008,7 @@ *MJD = *MJD_TAI; normalize_MJD( MJD ); /* Search for index such that TAI_UTC_lookup_table[*index] <= MJD(TAI) < TAI_UTC_lookup_table[*index+1] */ - bhunt_search( MJD, TAI_UTC_lookup_table, number_of_entries_in_tai_utc_table, sizeof ( TAI_UTC ), index, ( int( * ) ( const void *, const void * ))geMJDtime_TAI ); + bhunt_search( MJD, TAI_UTC_lookup_table, number_of_entries_in_tai_utc_table, sizeof ( TAI_UTC ), index, ( int ( * )( const void *, const void * ))geMJDtime_TAI ); if ( debug == 2 ) fprintf( stderr, "*index = %d\n", *index ); if ( *index == -1 ) Modified: trunk/src/plot3d.c =================================================================== --- trunk/src/plot3d.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/src/plot3d.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -1495,14 +1495,14 @@ switch ( flag ) { - case - 3: + case -3: y0 += dy; flag = -flag; break; - case - 2: + case -2: y0 += dy; break; - case - 1: + case -1: y0 += dy; flag = -flag; break; Modified: trunk/src/plvpor.c =================================================================== --- trunk/src/plvpor.c 2010-01-08 01:09:18 UTC (rev 10743) +++ trunk/src/plvpor.c 2010-01-08 01:14:04 UTC (rev 10744) @@ -192,9 +192,9 @@ switch ( axis ) { - case - 2: + case -2: break; - case - 1: + case -1: plbox( "bc", (PLFLT) 0.0, 0, "bc", (PLFLT) 0.0, 0 ); break; case 0: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |