Changeset b6e5dacc in tol


Ignore:
Timestamp:
Feb 10, 2015, 9:48:20 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cc7ddc7
Parents:
950d323
Message:

refs #1812, refs #1818, compilación basada en CMake, eliminación de warnings, automatización de la regla install.

Configuración en Linux como:

cmake -DCMAKE_TOOLCHAIN_FILE=../linux-i686.toolchain.cmake -DTOL_PREFIX_PATH=/usr/local/tol32 -DCMAKE_BUILD_TYPE=Release -DTCL_LIBRARY=/usr/local/tcl8.5-i686/lib/libtcl8.5.so ..

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6456 be4846ae-f051-483a-831f-b64e7d08527f

Location:
toltcl
Files:
8 added
6 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolaccess.cpp

    r950d323 rb6e5dacc  
    745745    }
    746746    objname = Tcl_GetString(items[1]);
     747
    747748    Tcl_UtfToExternalDString(NULL,objname,-1,&dstr);
    748749    syn = gra->FINDVARIABLE(Tcl_DStringValue(&dstr));
    … …  
    13121313 
    13131314  int datac;
    1314   Tcl_Obj ** datav = new ( Tcl_Obj* [ NUM_ARGS ] );
     1315  Tcl_Obj ** datav = new Tcl_Obj*[ NUM_ARGS ];
    13151316
    13161317  // is ok to ask for a list
    … …  
    16561657    tmp = I0.GetText();
    16571658    subitems[0] = Tcl_NewStringObj(tmp,-1);
    1658 #if defined(_TOL_FROZEN_)
    16591659    value = (*serie)[I0];
    1660 #else
    1661     value = (*serie)(I0);
    1662 #endif
    16631660    if ( value.IsKnown() )
    16641661      subitems[1] = Tcl_NewDoubleObj(value.Value());
    … …  
    25472544      printf("message: %s\n", ((BText&)str).Buffer());
    25482545      printf("objv[1] : %s\n", Tcl_GetString(objv[1]));
    2549       printf("%s\n", TT_interp->result);
     2546      printf("%s\n", Tcl_GetStringResult(TT_interp));
    25502547    }
    25512548    /* release the objects */
    … …  
    26022599    if (status != TCL_OK) {
    26032600      printf("%s -- error in Tcl_EvalObjv:\n", CMD_SERIECHART);
    2604       printf("%s\n", TT_interp->result);
     2601      printf("%s\n", Tcl_GetStringResult(TT_interp));
    26052602      printf("objv[1] : %s\n", Tcl_GetString(objv[1]));
    26062603      printf("objv[2] : %s\n", Tcl_GetString(objv[2]));
  • toltcl/generic/tolsergrp.cpp

    r950d323 rb6e5dacc  
    18991899    do {
    19001900      iter_cursor = cursors.data[iter];
    1901 #if defined(_TOL_FROZEN_)
    19021901      dat = (*(iter_cursor->serie))[cur_date];
    1903 #else
    1904       dat = (*(iter_cursor->serie))(cur_date);
    1905 #endif
    19061902      if (dat.IsKnown())
    19071903        iter_cursor->append(idx_dating,dat.Value());
    … …  
    21372133    do {
    21382134      iter_cursor = cursors.data[iter];
    2139 #if defined(_TOL_FROZEN_)
    21402135      dat = (*(iter_cursor->serie))[cur_date];
    2141 #else
    2142       dat = (*(iter_cursor->serie))(cur_date);
    2143 #endif
    21442136      if (dat.IsKnown())
    21452137        iter_cursor->append(idx_dating,dat.Value());
    … …  
    22662258  uts->ReadData();
    22672259  for ( i = 0; i < size_t(length); i++ ) {
    2268 #if defined(_TOL_FROZEN_)
    22692260    serdata(i) = (*uts)[I0];
    2270 #else
    2271     serdata(i) = (*uts)(I0);
    2272 #endif
    22732261    I0 += tms;
    22742262  }
  • toltcl/generic/toltableset.cpp

    r950d323 rb6e5dacc  
    121121  int AppendUnknown();
    122122  int AppendEmptyReal();
    123   int AppendText( char * txt );
     123  int AppendText( const char * txt );
    124124  /* prepend functions */
    125125  int PrependReal( Tcl_Interp * interp, double v );
    … …  
    559559 */
    560560
    561 int Tol_ColumnData::AppendText( char * txt )
     561int Tol_ColumnData::AppendText( const char * txt )
    562562{
    563563#ifdef _DEBUG_TABLE_
  • toltcl/generic/toltcl.c

    r950d323 rb6e5dacc  
    183183      printf("%s in file %s at line %d\n. str_ernno : %s",
    184184             reason, file, line, Tol_gsl_strerror(gsl_errno));
    185       printf("interp : %s\n", TT_interp->result);
     185      printf("interp : %s\n", Tcl_GetStringResult(TT_interp));
    186186    }
    187187  } 
  • toltcl/generic/toltcl.h

    r950d323 rb6e5dacc  
    2727#include <tcl.h>
    2828
     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
    2951/*
    3052 * Windows needs to know which symbols to export. Unix does not.
    3153 * BUILD_TOLTCL should be undefined for Unix.
    3254 */
    33 
    34 #define TOLTCL_MAJOR_VERSION    3
    35 #define TOLTCL_MINOR_VERSION    2
    36 #ifdef PACKAGE_VERSION
    37  #define TOLTCL_VERSION PACKAGE_VERSION
    38 #else
    39  #define TOLTCL_VERSION          "3.2"
    40 #endif
    4155
    4256#ifdef BUILD_TOLTCL
  • toltcl/generic/toltime.cpp

    r950d323 rb6e5dacc  
    8787  int    Minute()     const { return current.Minute(); }
    8888  double         Second()     const { return current.Second(); }
    89 #if defined(_TOL_FROZEN_)
    9089  int Contain( BDate & d ) { return uts->Contain( d ); }
    91 #else
    92   int Contain( BDate & d ) { return uts->Contain( d, BTRUE ); }
    93 #endif
    9490};
    9591
Note: See TracChangeset for help on using the changeset viewer.