From: <and...@us...> - 2011-10-14 07:11:24
|
Revision: 11967 http://plplot.svn.sourceforge.net/plplot/?rev=11967&view=rev Author: andrewross Date: 2011-10-14 07:11:18 +0000 (Fri, 14 Oct 2011) Log Message: ----------- Fix some -std=99 -pedantic warnings related to incomplete prototypes and missing const attributes. Modified Paths: -------------- trunk/bindings/c++/plstream.h trunk/bindings/tcl/tclAPI.c trunk/bindings/tk/plserver.c Modified: trunk/bindings/c++/plstream.h =================================================================== --- trunk/bindings/c++/plstream.h 2011-10-14 07:10:05 UTC (rev 11966) +++ trunk/bindings/c++/plstream.h 2011-10-14 07:11:18 UTC (rev 11967) @@ -97,10 +97,10 @@ plstream& operator=( const plstream& ); protected: - virtual void set_stream() { ::c_plsstrm( stream ); } + virtual void set_stream( void ) { ::c_plsstrm( stream ); } public: - plstream(); + plstream( void ); plstream( plstream * pls ); plstream( PLS::stream_id sid, PLINT strm = 0 ); plstream( PLINT _stream ) : stream( _stream ) {} @@ -109,7 +109,7 @@ plstream( PLINT nx /*=1*/, PLINT ny /*=1*/, PLINT r, PLINT g, PLINT b, const char *driver = NULL, const char *file = NULL ); - virtual ~plstream(); + virtual ~plstream( void ); // Now start miroring the PLplot C API. @@ -149,7 +149,7 @@ // Start new page. Should only be used with pleop(). - void bop(); + void bop( void ); // This draws a box around the current viewport. @@ -173,7 +173,7 @@ // Clear the current subpage. - void clear(); + void clear( void ); // Set color, map 0. Argument is integer between 0 and 15. @@ -260,7 +260,7 @@ // End current page. Should only be used with plbop(). - void eop(); + void eop( void ); // Plot horizontal error bars (xmin(i),y(i)) to (xmax(i),y(i)). @@ -272,7 +272,7 @@ // Advance to the next family file on the next new page. - void famadv(); + void famadv( void ); // Pattern fills the polygon bounded by the input points. @@ -284,7 +284,7 @@ // Flushes the output stream. Use sparingly, if at all. - void flush(); + void flush( void ); // Sets the global font flag to 'ifont'. @@ -357,7 +357,7 @@ // Switches to graphics screen. - void gra(); + void gra( void ); // Draw gradient in polygon. @@ -416,7 +416,7 @@ // Initializes PLplot, using preset or default options - void init(); + void init( void ); // Draws a line segment from (x1, y1) to (x2, y2). @@ -574,7 +574,7 @@ // Replays contents of plot buffer to current device/file. - void replot(); + void replot( void ); // Set line color by red, green, blue from 0. to 1. @@ -921,7 +921,7 @@ // Switches to text screen. - void text(); + void text( void ); // Set the format for date / time labels @@ -944,7 +944,7 @@ // Defines a "standard" viewport with seven character heights for // the left margin and four character heights everywhere else. - void vsta(); + void vsta( void ); // Set up a window for three-dimensional plotting. @@ -1055,11 +1055,11 @@ // Clear internal option table info structure. - void ClearOpts(); + void ClearOpts( void ); // Reset internal option table info structure. - void ResetOpts(); + void ResetOpts( void ); // Merge user option table into internal info structure. @@ -1083,7 +1083,7 @@ // Print usage & syntax message. - void OptUsage(); + void OptUsage( void ); // Miscellaneous Modified: trunk/bindings/tcl/tclAPI.c =================================================================== --- trunk/bindings/tcl/tclAPI.c 2011-10-14 07:10:05 UTC (rev 11966) +++ trunk/bindings/tcl/tclAPI.c 2011-10-14 07:11:18 UTC (rev 11967) @@ -152,7 +152,7 @@ // Evals the specified command, aborting on an error. static int -tcl_cmd( Tcl_Interp *interp, char *cmd ); +tcl_cmd( Tcl_Interp *interp, const char *cmd ); //-------------------------------------------------------------------------- // Append_Cmdlist @@ -786,7 +786,7 @@ //-------------------------------------------------------------------------- static int -tcl_cmd( Tcl_Interp *interp, char *cmd ) +tcl_cmd( Tcl_Interp *interp, const char *cmd ) { int result; Modified: trunk/bindings/tk/plserver.c =================================================================== --- trunk/bindings/tk/plserver.c 2011-10-14 07:10:05 UTC (rev 11966) +++ trunk/bindings/tk/plserver.c 2011-10-14 07:11:18 UTC (rev 11967) @@ -74,7 +74,7 @@ // Evals the specified command, aborting on an error. static void -tcl_cmd( Tcl_Interp *interp, char *cmd ); +tcl_cmd( Tcl_Interp *interp, const char *cmd ); // Application-specific startup @@ -291,7 +291,7 @@ //-------------------------------------------------------------------------- static void -tcl_cmd( Tcl_Interp *interp, char *cmd ) +tcl_cmd( Tcl_Interp *interp, const char *cmd ) { int result; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |