From: <and...@us...> - 2012-08-13 22:14:30
|
Revision: 12210 http://plplot.svn.sourceforge.net/plplot/?rev=12210&view=rev Author: andrewross Date: 2012-08-13 22:14:23 +0000 (Mon, 13 Aug 2012) Log Message: ----------- Clean up formatting using uncrustify. Modified Paths: -------------- trunk/bindings/tk/plframe.c trunk/bindings/tk/plr.c trunk/bindings/tk-x-plat/plplotter.c trunk/drivers/wxwidgets.h trunk/examples/c/x29c.c Modified: trunk/bindings/tk/plframe.c =================================================================== --- trunk/bindings/tk/plframe.c 2012-08-13 21:29:59 UTC (rev 12209) +++ trunk/bindings/tk/plframe.c 2012-08-13 22:14:23 UTC (rev 12210) @@ -1899,12 +1899,12 @@ ( pls->cmap1cp[i].p != p ) || ( pls->cmap1cp[i].alt_hue_path != reverse ) ) { - pls->cmap1cp[i].h = h; - pls->cmap1cp[i].l = l; - pls->cmap1cp[i].s = s; - pls->cmap1cp[i].p = p; + pls->cmap1cp[i].h = h; + pls->cmap1cp[i].l = l; + pls->cmap1cp[i].s = s; + pls->cmap1cp[i].p = p; pls->cmap1cp[i].alt_hue_path = reverse; - *p_changed = 1; + *p_changed = 1; } return TCL_OK; } Modified: trunk/bindings/tk/plr.c =================================================================== --- trunk/bindings/tk/plr.c 2012-08-13 21:29:59 UTC (rev 12209) +++ trunk/bindings/tk/plr.c 2012-08-13 22:14:23 UTC (rev 12210) @@ -505,9 +505,9 @@ plr_rd( pdf_rd_ieeef( plr->pdfs, &s ) ); plr_rd( pdf_rd_1byte( plr->pdfs, &rev ) ); - plsc->cmap1cp[i].h = h; - plsc->cmap1cp[i].l = l; - plsc->cmap1cp[i].s = s; + plsc->cmap1cp[i].h = h; + plsc->cmap1cp[i].l = l; + plsc->cmap1cp[i].s = s; plsc->cmap1cp[i].alt_hue_path = rev; } plP_state( PLSTATE_CMAP1 ); Modified: trunk/bindings/tk-x-plat/plplotter.c =================================================================== --- trunk/bindings/tk-x-plat/plplotter.c 2012-08-13 21:29:59 UTC (rev 12209) +++ trunk/bindings/tk-x-plat/plplotter.c 2012-08-13 22:14:23 UTC (rev 12210) @@ -1694,12 +1694,12 @@ ( pls->cmap1cp[i].p != p ) || ( pls->cmap1cp[i].alt_hue_path != reverse ) ) { - pls->cmap1cp[i].h = h; - pls->cmap1cp[i].l = l; - pls->cmap1cp[i].s = s; - pls->cmap1cp[i].p = p; + pls->cmap1cp[i].h = h; + pls->cmap1cp[i].l = l; + pls->cmap1cp[i].s = s; + pls->cmap1cp[i].p = p; pls->cmap1cp[i].alt_hue_path = reverse; - *p_changed = 1; + *p_changed = 1; } return TCL_OK; } Modified: trunk/drivers/wxwidgets.h =================================================================== --- trunk/drivers/wxwidgets.h 2012-08-13 21:29:59 UTC (rev 12209) +++ trunk/drivers/wxwidgets.h 2012-08-13 22:14:23 UTC (rev 12210) @@ -48,11 +48,11 @@ // side, but report/receive everything in virtual coordinates to/from the // PLplot core. // -#define VSCALE ( 40. ) +#define VSCALE ( 40. ) // pixels per inch -#define DEVICE_PIXELS_PER_IN ( 80. ) -#define VIRTUAL_PIXELS_PER_IN ( DEVICE_PIXELS_PER_IN * VSCALE ) +#define DEVICE_PIXELS_PER_IN ( 80. ) +#define VIRTUAL_PIXELS_PER_IN ( DEVICE_PIXELS_PER_IN * VSCALE ) // mm per inch @@ -467,16 +467,16 @@ // Use this macro if you want to define your own main() or WinMain() function // and call wxEntry() from there. -#define IMPLEMENT_PLAPP_NO_MAIN( appname ) \ - wxAppConsole * wxPLCreateApp() \ - { \ - wxAppConsole::CheckBuildOptions( WX_BUILD_OPTIONS_SIGNATURE, \ - "your program" ); \ - return new appname; \ - } \ - wxAppInitializer \ - wxAppInitializer( (wxAppInitializerFunction) (wxApp::GetInitializerFunction()==NULL ? wxPLCreateApp : wxApp::GetInitializerFunction()) ); \ - DECLARE_PLAPP( appname ) \ +#define IMPLEMENT_PLAPP_NO_MAIN( appname ) \ + wxAppConsole * wxPLCreateApp() \ + { \ + wxAppConsole::CheckBuildOptions( WX_BUILD_OPTIONS_SIGNATURE, \ + "your program" ); \ + return new appname; \ + } \ + wxAppInitializer \ + wxAppInitializer( (wxAppInitializerFunction) ( wxApp::GetInitializerFunction() == NULL ? wxPLCreateApp : wxApp::GetInitializerFunction() ) ); \ + DECLARE_PLAPP( appname ) \ appname & wxPLGetApp() { return *wx_static_cast( appname *, wxApp::GetInstance() ); } #define DECLARE_PLAPP( appname ) extern appname &wxPLGetApp(); Modified: trunk/examples/c/x29c.c =================================================================== --- trunk/examples/c/x29c.c 2012-08-13 21:29:59 UTC (rev 12209) +++ trunk/examples/c/x29c.c 2012-08-13 22:14:23 UTC (rev 12210) @@ -365,7 +365,7 @@ plbox( "bcnstd", xlabel_step, 0, "bcnstv", 0., 0 ); plcol0( 3 ); strncpy( title, "@frPLplot Example 29 - TAI-UTC ", 100 ); - strncat( title, title_suffix, 100 - strlen( title ) ); + strncat( title, title_suffix, 100 - strlen( title ) ); pllab( xtitle, "TAI-UTC (sec)", title ); plcol0( 4 ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |