Changeset 08e78b9 in tol for toltcl


Ignore:
Timestamp:
Nov 4, 2011, 5:51:43 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a58f1e9
Parents:
d5d6e31
Message:

refs #1323, using TOLHasBeenInitialized which is already implemented inside TOL

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

Location:
toltcl/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/tolaccess.cpp

    rd5d6e31 r08e78b9  
    142142  }
    143143  return TCL_OK;
    144 }
    145 
    146 int Tol_IsInitialized( )
    147 {
    148   return BGrammar::Exists( "Real" );
    149144}
    150145
  • toltcl/generic/toltcl.c

    rd5d6e31 r08e78b9  
    218218  vmode = objc == 3 ? Tcl_GetString(objv[2]) :  NULL;
    219219
    220   if ( !Tol_IsInitialized( ) ) {
    221     //printf( "TOL no esta inicializado\n" );
     220  if ( !TOLHasBeenInitialized( ) ) {
     221    printf( "TOL no esta inicializado\n" );
    222222    /*
    223223     * Initialize kernel
    … …  
    232232    Tol_gsl_set_error_handler(&TT_gsl_error_handler);
    233233  } else {
    234     //printf( "TOL esta inicializado\n" );
     234    printf( "TOL esta inicializado\n" );
    235235  }
    236236 
  • toltcl/generic/toltclInt.h

    rd5d6e31 r08e78b9  
    4343extern Tcl_Interp * TT_interp;
    4444
    45 /*! Check if TOL kernel has being initialized
    46  */
    47 extern int Tol_IsInitialized ();
    48 
    4945/*! Fill in obj_result the version info corresponding to tol
    5046 *   {major MajorNum minor MinorNum release ReleaseNum coment Comment}
Note: See TracChangeset for help on using the changeset viewer.