From: <arj...@us...> - 2013-11-14 07:54:27
|
Revision: 12696 http://sourceforge.net/p/plplot/code/12696 Author: arjenmarkus Date: 2013-11-14 07:54:24 +0000 (Thu, 14 Nov 2013) Log Message: ----------- Always use TclFormatInt as a macro, instead of relying on its presence in the Tcl library for older versions of Tcl. It is used only once in the code, so that the performance advantages the function offers are of no interest. The original code caused problems in some cases, even though the Tcl version used was 8.5 or later. Modified Paths: -------------- trunk/bindings/tcl/tclMain.c Modified: trunk/bindings/tcl/tclMain.c =================================================================== --- trunk/bindings/tcl/tclMain.c 2013-11-13 23:53:45 UTC (rev 12695) +++ trunk/bindings/tcl/tclMain.c 2013-11-14 07:54:24 UTC (rev 12696) @@ -52,13 +52,7 @@ // Required for definition of PL_UNUSED macro #include "plplotP.h" -#if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5 -// From (private) tclInt.h in tcl8.5 #define TclFormatInt( buf, n ) sprintf( ( buf ), "%ld", (long) ( n ) ) -#else -// From (private) tclIntDecls.h in tcl8.4 and before -EXTERN int TclFormatInt _ANSI_ARGS_( ( char * buffer, long n ) ); -#endif #ifndef TclObjCommandComplete_TCL_DECLARED EXTERN int TclObjCommandComplete _ANSI_ARGS_( ( Tcl_Obj * cmdPtr ) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |