Changeset 950d323 in tol


Ignore:
Timestamp:
Feb 10, 2015, 8:32:46 AM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b6e5dacc
Parents:
98cc0a5
Message:

refs #1812, refs #1818 cambios requeridos desde la compilación de toltcl con CMake, DLLEXPORT extra en conflicto con DLLEXPORT de tcl, se fuerza el const de algunos argumentos

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

Location:
tol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/init.cpp

    r98cc0a5 r950d323  
    474474
    475475//--------------------------------------------------------------------
    476 BBool InitGrammars(char* calledProgram)
     476BBool InitGrammars(const char* calledProgram)
    477477//--------------------------------------------------------------------
    478478{
    … …  
    14981498
    14991499//--------------------------------------------------------------------
    1500 void InitTolKernel(char* calledProgram, int lang, const char* vmode )
     1500void InitTolKernel(const char* calledProgram, int lang, const char* vmode )
    15011501//--------------------------------------------------------------------
    15021502{
  • tol/tol_bcommon.h

    r98cc0a5 r950d323  
    112112
    113113#ifdef STATIC_BUILD
    114 #   define DLLIMPORT
    115 #   define DLLEXPORT
     114#   define TOL_DLLIMPORT
     115#   define TOL_DLLEXPORT
    116116#else
    117117#   if (defined(WIN32) && (defined(_MSC_VER) || (__BORLANDC__ >= 0x0550) || (defined(__GNUC__) && defined(__declspec)))) || (defined(MAC_TCL) && FUNCTION_DECLSPEC)
    118 #       define DLLIMPORT __declspec(dllimport)
    119 #       define DLLEXPORT __declspec(dllexport)
     118#       define TOL_DLLIMPORT __declspec(dllimport)
     119#       define TOL_DLLEXPORT __declspec(dllexport)
    120120
    121121#if (defined(_MSC_VER) && (_MSC_VER<1400))
    … …  
    135135#pragma warning(disable : 4786)
    136136#   else
    137 #       define DLLIMPORT
    138 #       define DLLEXPORT
     137#       define TOL_DLLIMPORT
     138#       define TOL_DLLEXPORT
    139139#   endif
    140140#endif
    … …  
    145145
    146146#ifdef TOLDLL_EXPORTS
    147 #    define TOL_API DLLEXPORT
    148 #else
    149 #    define TOL_API DLLIMPORT
     147#    define TOL_API TOL_DLLEXPORT
     148#else
     149#    define TOL_API TOL_DLLIMPORT
    150150#endif
    151151
  • tol/tol_init.h

    r98cc0a5 r950d323  
    3636TOL_API void  InitializeFromMainArgs(int argc, char *argv[], char *env[]);
    3737TOL_API void  LoadInitLibrary       (int loadInitProject, int loadDefaultPackages);
    38 TOL_API void  InitTolKernel         (char* calledProgram, int lang, const char* vmode);
     38TOL_API void  InitTolKernel         (const char* calledProgram, int lang, const char* vmode);
    3939
    4040typedef void tgsl_error_handler
Note: See TracChangeset for help on using the changeset viewer.