From: <and...@us...> - 2011-11-30 22:09:14
|
Revision: 12078 http://plplot.svn.sourceforge.net/plplot/?rev=12078&view=rev Author: andrewross Date: 2011-11-30 22:09:07 +0000 (Wed, 30 Nov 2011) Log Message: ----------- The char * cmd argument passed to Tcl_MatrixInstallXtns is not modified, so mark it as const. Fixes some compiler warnings. Modified Paths: -------------- trunk/bindings/tcl/tclMatrix.c trunk/bindings/tcl/tclMatrix.h Modified: trunk/bindings/tcl/tclMatrix.c =================================================================== --- trunk/bindings/tcl/tclMatrix.c 2011-11-30 22:04:42 UTC (rev 12077) +++ trunk/bindings/tcl/tclMatrix.c 2011-11-30 22:09:07 UTC (rev 12078) @@ -407,7 +407,7 @@ static tclMatrixXtnsnDescr *tail = (tclMatrixXtnsnDescr *) NULL; int -Tcl_MatrixInstallXtnsn( char *cmd, tclMatrixXtnsnProc proc ) +Tcl_MatrixInstallXtnsn( const char *cmd, tclMatrixXtnsnProc proc ) { // // My goodness how I hate primitive/pathetic C. With C++ this Modified: trunk/bindings/tcl/tclMatrix.h =================================================================== --- trunk/bindings/tcl/tclMatrix.h 2011-11-30 22:04:42 UTC (rev 12077) +++ trunk/bindings/tcl/tclMatrix.h 2011-11-30 22:09:07 UTC (rev 12078) @@ -353,7 +353,7 @@ struct tclMatrixXtnsnDescr *next; } tclMatrixXtnsnDescr; -int PLDLLIMPEXP_TCLMAT Tcl_MatrixInstallXtnsn( char *cmd, tclMatrixXtnsnProc proc ); +int PLDLLIMPEXP_TCLMAT Tcl_MatrixInstallXtnsn( const char *cmd, tclMatrixXtnsnProc proc ); #ifdef __cplusplus } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |