Changeset b6e5dacc in tol
- Timestamp:
- Feb 10, 2015, 9:48:20 PM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- cc7ddc7
- Parents:
- 950d323
- Location:
- toltcl
- Files:
-
- 8 added
- 6 edited
-
CMakeLists.txt (added)
-
cmake/modules/FindTOL.cmake (added)
-
cmake/modules/LibFindMacros.cmake (added)
-
cmake/modules/MSysMacros.cmake (added)
-
generic/CMakeLists.txt (added)
-
generic/tolaccess.cpp (modified) (5 diffs)
-
generic/tolsergrp.cpp (modified) (3 diffs)
-
generic/toltableset.cpp (modified) (2 diffs)
-
generic/toltcl.c (modified) (1 diff)
-
generic/toltcl.h (modified) (1 diff)
-
generic/toltime.cpp (modified) (1 diff)
-
library/CMakeLists.txt (added)
-
library/pkgIndex.tcl.in (added)
-
linux-i686.toolchain.cmake (added)
Legend:
- Unmodified
- Added
- Removed
-
toltcl/generic/tolaccess.cpp
r950d323 rb6e5dacc 745 745 } 746 746 objname = Tcl_GetString(items[1]); 747 747 748 Tcl_UtfToExternalDString(NULL,objname,-1,&dstr); 748 749 syn = gra->FINDVARIABLE(Tcl_DStringValue(&dstr)); … … 1312 1313 1313 1314 int datac; 1314 Tcl_Obj ** datav = new ( Tcl_Obj* [ NUM_ARGS ] );1315 Tcl_Obj ** datav = new Tcl_Obj*[ NUM_ARGS ]; 1315 1316 1316 1317 // is ok to ask for a list … … 1656 1657 tmp = I0.GetText(); 1657 1658 subitems[0] = Tcl_NewStringObj(tmp,-1); 1658 #if defined(_TOL_FROZEN_)1659 1659 value = (*serie)[I0]; 1660 #else1661 value = (*serie)(I0);1662 #endif1663 1660 if ( value.IsKnown() ) 1664 1661 subitems[1] = Tcl_NewDoubleObj(value.Value()); … … 2547 2544 printf("message: %s\n", ((BText&)str).Buffer()); 2548 2545 printf("objv[1] : %s\n", Tcl_GetString(objv[1])); 2549 printf("%s\n", T T_interp->result);2546 printf("%s\n", Tcl_GetStringResult(TT_interp)); 2550 2547 } 2551 2548 /* release the objects */ … … 2602 2599 if (status != TCL_OK) { 2603 2600 printf("%s -- error in Tcl_EvalObjv:\n", CMD_SERIECHART); 2604 printf("%s\n", T T_interp->result);2601 printf("%s\n", Tcl_GetStringResult(TT_interp)); 2605 2602 printf("objv[1] : %s\n", Tcl_GetString(objv[1])); 2606 2603 printf("objv[2] : %s\n", Tcl_GetString(objv[2])); -
toltcl/generic/tolsergrp.cpp
r950d323 rb6e5dacc 1899 1899 do { 1900 1900 iter_cursor = cursors.data[iter]; 1901 #if defined(_TOL_FROZEN_)1902 1901 dat = (*(iter_cursor->serie))[cur_date]; 1903 #else1904 dat = (*(iter_cursor->serie))(cur_date);1905 #endif1906 1902 if (dat.IsKnown()) 1907 1903 iter_cursor->append(idx_dating,dat.Value()); … … 2137 2133 do { 2138 2134 iter_cursor = cursors.data[iter]; 2139 #if defined(_TOL_FROZEN_)2140 2135 dat = (*(iter_cursor->serie))[cur_date]; 2141 #else2142 dat = (*(iter_cursor->serie))(cur_date);2143 #endif2144 2136 if (dat.IsKnown()) 2145 2137 iter_cursor->append(idx_dating,dat.Value()); … … 2266 2258 uts->ReadData(); 2267 2259 for ( i = 0; i < size_t(length); i++ ) { 2268 #if defined(_TOL_FROZEN_)2269 2260 serdata(i) = (*uts)[I0]; 2270 #else2271 serdata(i) = (*uts)(I0);2272 #endif2273 2261 I0 += tms; 2274 2262 } -
toltcl/generic/toltableset.cpp
r950d323 rb6e5dacc 121 121 int AppendUnknown(); 122 122 int AppendEmptyReal(); 123 int AppendText( c har * txt );123 int AppendText( const char * txt ); 124 124 /* prepend functions */ 125 125 int PrependReal( Tcl_Interp * interp, double v ); … … 559 559 */ 560 560 561 int Tol_ColumnData::AppendText( c har * txt )561 int Tol_ColumnData::AppendText( const char * txt ) 562 562 { 563 563 #ifdef _DEBUG_TABLE_ -
toltcl/generic/toltcl.c
r950d323 rb6e5dacc 183 183 printf("%s in file %s at line %d\n. str_ernno : %s", 184 184 reason, file, line, Tol_gsl_strerror(gsl_errno)); 185 printf("interp : %s\n", T T_interp->result);185 printf("interp : %s\n", Tcl_GetStringResult(TT_interp)); 186 186 } 187 187 } -
toltcl/generic/toltcl.h
r950d323 rb6e5dacc 27 27 #include <tcl.h> 28 28 29 #if defined(__TOLTCL_MAJOR_VERSION__) 30 #define TOLTCL_MAJOR_VERSION __TOLTCL_MAJOR_VERSION__ 31 #else 32 #define TOLTCL_MAJOR_VERSION 3 33 #endif 34 35 #if defined(__TOLTCL_MINOR_VERSION__) 36 #define TOLTCL_MINOR_VERSION __TOLTCL_MINOR_VERSION__ 37 #else 38 #define TOLTCL_MINOR_VERSION 2 39 #endif 40 41 #define TOLTCL_TO_STRING0( x ) #x 42 #define TOLTCL_TO_STRING( x ) TOLTCL_TO_STRING0( x ) 43 44 #ifdef PACKAGE_VERSION 45 #define TOLTCL_VERSION PACKAGE_VERSION 46 #else 47 48 #define TOLTCL_VERSION TOLTCL_TO_STRING( TOLTCL_MAJOR_VERSION ) "." TOLTCL_TO_STRING( TOLTCL_MINOR_VERSION ) 49 #endif 50 29 51 /* 30 52 * Windows needs to know which symbols to export. Unix does not. 31 53 * BUILD_TOLTCL should be undefined for Unix. 32 54 */ 33 34 #define TOLTCL_MAJOR_VERSION 335 #define TOLTCL_MINOR_VERSION 236 #ifdef PACKAGE_VERSION37 #define TOLTCL_VERSION PACKAGE_VERSION38 #else39 #define TOLTCL_VERSION "3.2"40 #endif41 55 42 56 #ifdef BUILD_TOLTCL -
toltcl/generic/toltime.cpp
r950d323 rb6e5dacc 87 87 int Minute() const { return current.Minute(); } 88 88 double Second() const { return current.Second(); } 89 #if defined(_TOL_FROZEN_)90 89 int Contain( BDate & d ) { return uts->Contain( d ); } 91 #else92 int Contain( BDate & d ) { return uts->Contain( d, BTRUE ); }93 #endif94 90 }; 95 91
Note: See TracChangeset
for help on using the changeset viewer.
