Changeset 171e6a0 in tol
- Timestamp:
- Jan 12, 2016, 1:05:05 PM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- eb0481b
- Parents:
- 8685395
- Location:
- vbtol
- Files:
-
- 2 added
- 5 edited
-
CMakeLists.txt (added)
-
source/CMakeLists.txt (added)
-
source/datatype.cpp (modified) (16 diffs)
-
source/vbtol.cpp (modified) (5 diffs)
-
source/vbutils.cpp (modified) (1 diff)
-
source/vbutils.h (modified) (1 diff)
-
win-vc9/vbtol.vcproj (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vbtol/source/datatype.cpp
r8685395 r171e6a0 22 22 */ 23 23 24 #include <config.h> 25 #include <tol_init.h> 26 #include <tol_bgrammar.h> 24 #if defined(_MSC_VER) 25 #include <config.h> 26 #include <tol_init.h> 27 #include <tol_bgrammar.h> 28 #else 29 #include <tol/config.h> 30 #include <tol/tol_init.h> 31 #include <tol/tol_bgrammar.h> 32 #endif 33 27 34 #include <tol/tol_bdat.h> 28 35 #include <tol/tol_bdatgra.h> … … 31 38 #include <tol/tol_bmatgra.h> 32 39 33 #include " VButils.h"40 #include "vbutils.h" 34 41 35 42 /* … … 42 49 */ 43 50 //--------------------------------------------------------------------------- 44 short __declspec(dllexport) CALLBACKTolGetText(BSTR lvalue, BSTR * retvalue)51 extern "C" __declspec(dllexport) short __stdcall TolGetText(BSTR lvalue, BSTR * retvalue) 45 52 //--------------------------------------------------------------------------- 46 53 { … … 69 76 */ 70 77 //--------------------------------------------------------------------------- 71 short __declspec(dllexport) CALLBACKTolCreateText(BSTR name, BSTR value)78 extern "C" __declspec(dllexport) short __stdcall TolCreateText(BSTR name, BSTR value) 72 79 //--------------------------------------------------------------------------- 73 80 { … … 110 117 */ 111 118 //--------------------------------------------------------------------------- 112 short __declspec(dllexport) CALLBACKTolGetReal(BSTR lvalue, stolreal * retvalue)119 extern "C" __declspec(dllexport) short __stdcall TolGetReal(BSTR lvalue, stolreal * retvalue) 113 120 //--------------------------------------------------------------------------- 114 121 { … … 146 153 */ 147 154 //--------------------------------------------------------------------------- 148 short __declspec(dllexport) CALLBACKTolCreateReal(BSTR name, stolreal * value)155 extern "C" __declspec(dllexport) short __stdcall TolCreateReal(BSTR name, stolreal * value) 149 156 //--------------------------------------------------------------------------- 150 157 { … … 343 350 */ 344 351 //--------------------------------------------------------------------------- 345 short __declspec(dllexport) CALLBACKTolGetRange(BSTR lvalue,352 extern "C" __declspec(dllexport) short __stdcall TolGetRange(BSTR lvalue, 346 353 long frow, long lrow, 347 354 long fcol, long lcol, … … 368 375 */ 369 376 //--------------------------------------------------------------------------- 370 short __declspec(dllexport) CALLBACKTolGetMatrix(BSTR lvalue,377 extern "C" __declspec(dllexport) short __stdcall TolGetMatrix(BSTR lvalue, 371 378 LPSAFEARRAY FAR * retvalue, 372 379 LPSAFEARRAY FAR * retmask) … … 391 398 */ 392 399 //--------------------------------------------------------------------------- 393 short __declspec(dllexport) CALLBACKTolGetRow(BSTR lvalue, long row,400 extern "C" __declspec(dllexport) short __stdcall TolGetRow(BSTR lvalue, long row, 394 401 LPSAFEARRAY FAR * retvalue, 395 402 LPSAFEARRAY FAR * retmask) … … 416 423 */ 417 424 //--------------------------------------------------------------------------- 418 short __declspec(dllexport) CALLBACKTolGetColumn(BSTR lvalue, long col,425 extern "C" __declspec(dllexport) short __stdcall TolGetColumn(BSTR lvalue, long col, 419 426 LPSAFEARRAY FAR * retvalue, 420 427 LPSAFEARRAY FAR * retmask) … … 437 444 */ 438 445 //--------------------------------------------------------------------------- 439 short __declspec(dllexport) CALLBACKTolGetCell(BSTR lvalue, long row, long col,446 extern "C" __declspec(dllexport) short __stdcall TolGetCell(BSTR lvalue, long row, long col, 440 447 stolreal * retvalue) 441 448 //--------------------------------------------------------------------------- … … 610 617 */ 611 618 //--------------------------------------------------------------------------- 612 short __declspec(dllexport) CALLBACKTolPutRange(BSTR lvalue, long row, long col,619 extern "C" __declspec(dllexport) short __stdcall TolPutRange(BSTR lvalue, long row, long col, 613 620 LPSAFEARRAY FAR * value, 614 621 LPSAFEARRAY FAR * mask) … … 635 642 */ 636 643 //--------------------------------------------------------------------------- 637 short __declspec(dllexport) CALLBACKTolPutRow(BSTR lvalue, long row,644 extern "C" __declspec(dllexport) short __stdcall TolPutRow(BSTR lvalue, long row, 638 645 LPSAFEARRAY FAR * value, 639 646 LPSAFEARRAY FAR * mask) … … 660 667 */ 661 668 //--------------------------------------------------------------------------- 662 short __declspec(dllexport) CALLBACKTolPutColumn(BSTR lvalue, long col,669 extern "C" __declspec(dllexport) short __stdcall TolPutColumn(BSTR lvalue, long col, 663 670 LPSAFEARRAY FAR * value, 664 671 LPSAFEARRAY FAR * mask) … … 681 688 */ 682 689 //--------------------------------------------------------------------------- 683 short __declspec(dllexport) CALLBACKTolPutCell(BSTR lvalue, long row, long col,690 extern "C" __declspec(dllexport) short __stdcall TolPutCell(BSTR lvalue, long row, long col, 684 691 stolreal * value) 685 692 //--------------------------------------------------------------------------- … … 732 739 */ 733 740 //--------------------------------------------------------------------------- 734 short __declspec(dllexport) CALLBACKTolCreateMatrix(BSTR name,741 extern "C" __declspec(dllexport) short __stdcall TolCreateMatrix(BSTR name, 735 742 LPSAFEARRAY FAR * value, 736 743 LPSAFEARRAY FAR * mask) -
vbtol/source/vbtol.cpp
r8685395 r171e6a0 21 21 22 22 #include <windows.h> 23 #include <config.h> 24 #include <tol_init.h> 25 #include <tol_bout.h> 26 #include <tol_list.h> 23 #if defined(_MSC_VER) 24 #include <config.h> 25 #include <tol_init.h> 26 #include <tol_bout.h> 27 #include <tol_list.h> 28 #else 29 #include <tol/config.h> 30 #include <tol/tol_init.h> 31 #include <tol/tol_bout.h> 32 #include <tol/tol_list.h> 33 #endif 27 34 28 #include " VButils.h"35 #include "vbutils.h" 29 36 30 37 /* … … 34 41 */ 35 42 //--------------------------------------------------------------------------- 36 short __declspec(dllexport) CALLBACKTolDecompileAll()43 DLLEXPORT(short) TolDecompileAll() 37 44 //--------------------------------------------------------------------------- 38 45 { … … 58 65 */ 59 66 //--------------------------------------------------------------------------- 60 short __declspec(dllexport) CALLBACKTolDecompile(BSTR name)67 DLLEXPORT(short) TolDecompile(BSTR name) 61 68 //--------------------------------------------------------------------------- 62 69 { … … 108 115 */ 109 116 //--------------------------------------------------------------------------- 110 short __declspec(dllexport) CALLBACKTolEval(BSTR expr, short* nerror, short* nwarning)117 DLLEXPORT(short) TolEval(BSTR expr, short* nerror, short* nwarning) 111 118 //--------------------------------------------------------------------------- 112 119 { … … 132 139 */ 133 140 //--------------------------------------------------------------------------- 134 void __declspec(dllexport) CALLBACKTolInit(long addr, BSTR vmode, short initlib)141 DLLEXPORT(void) TolInit(long addr, BSTR vmode, short initlib) 135 142 //--------------------------------------------------------------------------- 136 143 { -
vbtol/source/vbutils.cpp
r8685395 r171e6a0 20 20 */ 21 21 22 #include " VButils.h"22 #include "vbutils.h" 23 23 24 24 /* -
vbtol/source/vbutils.h
r8685395 r171e6a0 25 25 #include <string.h> 26 26 #include <windows.h> 27 #include <config.h>28 #include <tol_init.h>29 #include <tol_bmatgra.h>30 27 28 #if defined(_MSC_VER) 29 #include <config.h> 30 #include <tol_init.h> 31 #include <tol_bmatgra.h> 32 #else 33 #include <tol/config.h> 34 #include <tol/tol_init.h> 35 #include <tol/tol_bmatgra.h> 36 #endif 37 38 #if defined(_MSC_VER) 39 #define DLLEXPORT(f) f __declspec(dllexport) CALLBACK 40 #else 41 #define DLLEXPORT(f) extern "C" __declspec(dllexport) f __stdcall 42 #endif 31 43 32 44 class BList; -
vbtol/win-vc9/vbtol.vcproj
r8685395 r171e6a0 50 50 Name="VCCLCompilerTool" 51 51 Optimization="0" 52 AdditionalIncludeDirectories=""..\..\tol\win-VC 8";"$(GSL_INC)";"$(GOOGLE_SPARSEHASH)";..\generic;../../tol;../../tol/lang;../../tol/bbasic;../../tol/bmath;../../tol/bmath/barith;../../tol/bmath/bfunct;../../tol/bmath/blinalg;../../tol/bmath/bprdist;../../tol/bmath/bstat;../../tol/bmath/dcdflib;../../tol/bmath/mathobjects;../../tol/bparser;../../tol/btol;../../tol/btol/bdb;../../tol/btol/bgrammar;../../tol/btol/bgsl;../../tol/btol/bmodel;../../tol/btol/code_type;../../tol/btol/complex_type;../../tol/btol/date_type;../../tol/btol/matrix_type;../../tol/btol/polynomial_type;../../tol/btol/ratio_type;../../tol/btol/real_type;../../tol/btol/serie_type;../../tol/btol/set_type;../../tol/btol/text_type;../../tol/btol/timeset_type"52 AdditionalIncludeDirectories=""..\..\tol\win-VC9";"$(GSL_INC)";"$(GOOGLE_SPARSEHASH)";..\generic;../../tol;../../tol/lang;../../tol/bbasic;../../tol/bmath;../../tol/bmath/barith;../../tol/bmath/bfunct;../../tol/bmath/blinalg;../../tol/bmath/bprdist;../../tol/bmath/bstat;../../tol/bmath/dcdflib;../../tol/bmath/mathobjects;../../tol/bparser;../../tol/btol;../../tol/btol/bdb;../../tol/btol/bgrammar;../../tol/btol/bgsl;../../tol/btol/bmodel;../../tol/btol/code_type;../../tol/btol/complex_type;../../tol/btol/date_type;../../tol/btol/matrix_type;../../tol/btol/polynomial_type;../../tol/btol/ratio_type;../../tol/btol/real_type;../../tol/btol/serie_type;../../tol/btol/set_type;../../tol/btol/text_type;../../tol/btol/timeset_type" 53 53 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;HAVE_CONFIG_H;ISFILE_IMPLEMENTED;_TOL_FROZEN_;__USE_OIS__" 54 54 MinimalRebuild="false"
Note: See TracChangeset
for help on using the changeset viewer.
