Changeset d6b52ea in tol


Ignore:
Timestamp:
May 5, 2011, 10:54:05 AM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
28bccd2
Parents:
2412c49
Message:

Fixes #1189
There is a new global system constant TolTclIsEnabled which indicates if TCL API is available in TOL

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

Location:
tol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/real_type/datgra.cpp

    r2412c49 rd6b52ea  
    3131#define DEFAULT_INIT_PRIORITY 30
    3232
     33#include <tol/tol_bdatgra.h>
    3334#include <tol/tol_bout.h>
     35#include <tol/tol_init.h>
    3436#include <tol/tol_bqfile.h>
    35 #include <tol/tol_bdatgra.h>
    3637#include <tol/tol_btsrgrp.h>
    3738#include <tol/tol_bsetgra.h>
    … …  
    232233  BDatNError*   numError_    = new BDatNError;
    233234  BDatNWarning* numWarning_  = new BDatNWarning;
     235
     236  BSystemDat* tolTclIsEnabled_ = new BSystemDat("TolTclIsEnabled",      TolTclIsEnabled(),
     237                             I2("Indicates if TCL API is available in TOL",
     238                                      "Indica si la API TCL está accesible desde TOL"));
    234239
    235240  BSystemDat* unknown_ = new BSystemDat("?",     BDat::Unknown(),
    … …  
    522527  );
    523528
     529  BParamDat* showStackAtError_   = new BParamDat
     530  (
     531    "ShowStackAtError",
     532    BOut::showStackAtError,
     533    "Enables/disables call stack tracing of error messages"
     534  );
     535
     536  BParamDat* showStackAtWarning_         = new BParamDat
     537  (
     538    "ShowStackAtWarning",
     539    BOut::showStackAtWarning,
     540    "Enables/disables call stack tracing of warning messages"
     541  );
     542
    524543  OwnGrammar()->PutDefect(unknown_);
    525544
  • tol/btol/set_type/setgra.cpp

    r2412c49 rd6b52ea  
    2424#endif
    2525
     26#include <tol/tol_bsetgra.h>
     27#include <tol/tol_init.h>
    2628#include <tol/tol_tree.h>
    2729#include <tol/tol_bdir.h>
    … …  
    3234#include <tol/tol_bparser.h>
    3335#include <tol/tol_boper.h>
    34 #include <tol/tol_bsetgra.h>
    3536#include <tol/tol_bmatgra.h>
    3637#include <tol/tol_btxtgra.h>
    … …  
    25442545Tcl_EvalPtr tcl_evaluator = NULL;
    25452546
     2547//--------------------------------------------------------------------
     2548int TolTclIsEnabled()
     2549//--------------------------------------------------------------------
     2550{
     2551  return(tcl_evaluator!=NULL);
     2552}
     2553
     2554//--------------------------------------------------------------------
    25462555Tcl_EvalPtr InstallTclEval(Tcl_EvalPtr new_evaluator)
     2556//--------------------------------------------------------------------
    25472557{
    25482558  Tcl_EvalPtr old_evaluator = tcl_evaluator;
    … …  
    25552565Tcl_EvalExPtr tcl_evaluatorEx = NULL;
    25562566
     2567//--------------------------------------------------------------------
    25572568Tcl_EvalExPtr InstallTclEvalEx(Tcl_EvalExPtr new_evaluator)
     2569//--------------------------------------------------------------------
    25582570{
    25592571  Tcl_EvalExPtr old_evaluator = tcl_evaluatorEx;
  • tol/tol_init.h

    r2412c49 rd6b52ea  
    5858TOL_API void SetTOLEnd();
    5959TOL_API void UnexpectedTolEnd(void);
     60TOL_API int TolTclIsEnabled();
    6061
    6162END_DECLS
Note: See TracChangeset for help on using the changeset viewer.