Changeset 6f2da0d in tol


Ignore:
Timestamp:
Dec 16, 2010, 1:45:02 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
93312975
Parents:
e3eca1a
Message:

Exporting fnciton void InitCint() to be called from main function of executables

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

Location:
tol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/init.cpp

    re3eca1a r6f2da0d  
    6969#include <tol/tol_bnameblock.h>
    7070
    71 int Cint_initialize(const BText& filePath);
    7271
    7372#ifdef _DEBUG
    … …  
    127126
    128127
     128int Cint_initialize(const BText& filePath);
     129
     130//--------------------------------------------------------------------
     131TOL_API void  InitCint ()
     132//--------------------------------------------------------------------
     133{
     134  Cint_initialize("");
     135}
    129136
    130137//--------------------------------------------------------------------
    … …  
    427434  static BBool initGrammars_ = BFALSE;
    428435
    429   Cint_initialize("");
     436  InitCint();
    430437  if(initGrammars_)  { return(false); }
    431438
    … …  
    857864    BTolOprProfiler_Init();
    858865    TOLHasBeenInitialized_ = true;
    859     //Cint_initialize("");
    860866    return(initGrammars_);
    861867}
    … …  
    13821388//--------------------------------------------------------------------
    13831389{
    1384   //Cint_initialize("");
     1390  InitCint();
    13851391  BText::PutLanguage(lang);
    13861392  InitVerboseMode();
  • tol/tol_init.h

    re3eca1a r6f2da0d  
    3333
    3434//calledProgram should be argv[0] in main function
     35TOL_API void  InitCint              ();
    3536TOL_API void  InitializeFromMainArgs(int argc, char *argv[], char *env[]);
    3637TOL_API void  LoadInitLibrary       (char* calledProgram);
Note: See TracChangeset for help on using the changeset viewer.