Update of /cvsroot/objecthandler/ObjectHandler/xlsdk
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12155/xlsdk
Modified Files:
framewrk.cpp xlsdk.hpp xlsdk_vc8.vcproj
Added Files:
auto_link.hpp
Removed Files:
autolink.hpp
Log Message:
auto_linking
Index: xlsdk.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/xlsdk/xlsdk.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xlsdk.hpp 19 May 2006 15:12:41 -0000 1.1
--- xlsdk.hpp 25 May 2006 17:01:57 -0000 1.2
***************
*** 20,24 ****
#include <xlsdk/xlsdkdefines.hpp>
- #include <xlsdk/autolink.hpp>
#endif
--- 20,23 ----
--- autolink.hpp DELETED ---
Index: xlsdk_vc8.vcproj
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/xlsdk/xlsdk_vc8.vcproj,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** xlsdk_vc8.vcproj 24 May 2006 09:42:09 -0000 1.2
--- xlsdk_vc8.vcproj 25 May 2006 17:01:57 -0000 1.3
***************
*** 44,48 ****
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".."
! PreprocessorDefinitions="NDEBUG;_LIB;WIN32;LOG4CXX_STATIC"
StringPooling="true"
RuntimeLibrary="0"
--- 44,48 ----
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".."
! PreprocessorDefinitions="BOOST_LIB_DIAGNOSTIC;NDEBUG;_LIB;WIN32;LOG4CXX_STATIC"
StringPooling="true"
RuntimeLibrary="0"
***************
*** 196,200 ****
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".."
! PreprocessorDefinitions="NDEBUG;_LIB;WIN32;LOG4CXX_STATIC"
StringPooling="true"
RuntimeLibrary="2"
--- 196,200 ----
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".."
! PreprocessorDefinitions="BOOST_LIB_DIAGNOSTIC;NDEBUG;_LIB;WIN32;LOG4CXX_STATIC"
StringPooling="true"
RuntimeLibrary="2"
Index: framewrk.cpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/xlsdk/framewrk.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** framewrk.cpp 19 May 2006 15:12:41 -0000 1.1
--- framewrk.cpp 25 May 2006 17:01:57 -0000 1.2
***************
*** 12,16 ****
// GetTempMemory()
//
! // Purpose:
// Allocates temporary memory. Temporary memory
// can only be freed in one chunk, by calling
--- 12,16 ----
// GetTempMemory()
//
! // Purpose:
// Allocates temporary memory. Temporary memory
// can only be freed in one chunk, by calling
***************
*** 21,25 ****
// int cBytes How many bytes to allocate
//
! // Returns:
//
// LPSTR A pointer to the allocated memory,
--- 21,25 ----
// int cBytes How many bytes to allocate
//
! // Returns:
//
// LPSTR A pointer to the allocated memory,
***************
*** 33,37 ****
//
// Algorithm:
! //
// The memory allocation algorithm is extremely
// simple: on each call, allocate the next cBytes
--- 33,37 ----
//
// Algorithm:
! //
// The memory allocation algorithm is extremely
// simple: on each call, allocate the next cBytes
***************
*** 73,77 ****
// FreeAllTempMemory()
//
! // Purpose:
//
// Frees all temporary memory that has been allocated
--- 73,77 ----
// FreeAllTempMemory()
//
! // Purpose:
//
// Frees all temporary memory that has been allocated
***************
*** 79,83 ****
// Parameters:
//
! // Returns:
//
// Comments:
--- 79,83 ----
// Parameters:
//
! // Returns:
//
// Comments:
***************
*** 120,124 ****
// TempNum()
//
! // Purpose:
// Creates a temporary numeric (IEEE floating point) XLOPER.
//
--- 120,124 ----
// TempNum()
//
! // Purpose:
// Creates a temporary numeric (IEEE floating point) XLOPER.
//
***************
*** 127,131 ****
// double d The value
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 127,131 ----
// double d The value
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 156,160 ****
// TempStr()
//
! // Purpose:
// Creates a temporary string XLOPER
//
--- 156,160 ----
// TempStr()
//
! // Purpose:
// Creates a temporary string XLOPER
//
***************
*** 170,174 ****
// characters.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 170,174 ----
// characters.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 255,259 ****
// TempBool()
//
! // Purpose:
// Creates a temporary logical (true/false) XLOPER.
//
--- 255,259 ----
// TempBool()
//
! // Purpose:
// Creates a temporary logical (true/false) XLOPER.
//
***************
*** 263,267 ****
// Anything else - for a TRUE XLOPER
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 263,267 ----
// Anything else - for a TRUE XLOPER
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 293,297 ****
// TempInt()
//
! // Purpose:
// Creates a temporary integer XLOPER.
//
--- 293,297 ----
// TempInt()
//
! // Purpose:
// Creates a temporary integer XLOPER.
//
***************
*** 300,304 ****
// short int i The integer
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 300,304 ----
// short int i The integer
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 329,333 ****
// TempErr()
//
! // Purpose:
// Creates a temporary error XLOPER.
//
--- 329,333 ----
// TempErr()
//
! // Purpose:
// Creates a temporary error XLOPER.
//
***************
*** 340,344 ****
// of various error codes.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 340,344 ----
// of various error codes.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 369,373 ****
// TempActiveRef()
//
! // Purpose:
// Creates a temporary rectangular reference to the active
// sheet. Remember that the active sheet is the sheet that
--- 369,373 ----
// TempActiveRef()
//
! // Purpose:
// Creates a temporary rectangular reference to the active
// sheet. Remember that the active sheet is the sheet that
***************
*** 382,386 ****
// BYTE colLast (0 based) The last column in the rectangle.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 382,386 ----
// BYTE colLast (0 based) The last column in the rectangle.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 426,430 ****
// TempActiveCell()
//
! // Purpose:
// Creates a temporary reference to a single cell on the active
// sheet. Remember that the active sheet is the sheet that
--- 426,430 ----
// TempActiveCell()
//
! // Purpose:
// Creates a temporary reference to a single cell on the active
// sheet. Remember that the active sheet is the sheet that
***************
*** 437,441 ****
// BYTE col (0 based) The column of the cell.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 437,441 ----
// BYTE col (0 based) The column of the cell.
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 457,461 ****
// TempActiveRow()
//
! // Purpose:
// Creates a temporary reference to an entire row on the active
// sheet. Remember that the active sheet is the sheet that
--- 457,461 ----
// TempActiveRow()
//
! // Purpose:
// Creates a temporary reference to an entire row on the active
// sheet. Remember that the active sheet is the sheet that
***************
*** 467,471 ****
// WORD rw (0 based) The row.
//
! // Returns:
//
// int 0 if they are equal
--- 467,471 ----
// WORD rw (0 based) The row.
//
! // Returns:
//
// int 0 if they are equal
***************
*** 487,491 ****
// TempActiveColumn()
//
! // Purpose:
// Creates a temporary reference to an entire column on the active
// sheet. Remember that the active sheet is the sheet that
--- 487,491 ----
// TempActiveColumn()
//
! // Purpose:
// Creates a temporary reference to an entire column on the active
// sheet. Remember that the active sheet is the sheet that
***************
*** 498,502 ****
// LPSTR t Second string
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 498,502 ----
// LPSTR t Second string
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
***************
*** 516,520 ****
// TempMissing()
//
! // Purpose:
// This is used to simulate a missing argument when
// calling Excel(). It creates a temporary
--- 516,520 ----
// TempMissing()
//
! // Purpose:
// This is used to simulate a missing argument when
// calling Excel(). It creates a temporary
***************
*** 523,527 ****
// Parameters:
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- 523,527 ----
// Parameters:
//
! // Returns:
//
// LPXLOPER The temporary XLOPER, or 0
--- NEW FILE: auto_link.hpp ---
/*
Copyright (C) 2005 Eric Ehlers
Copyright (C) 2004 Ferdinando Ametrano
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it under the
terms of the QuantLib license. You should have received a copy of the
license along with this program; if not, please email qua...@li...
The license is also available online at http://quantlib.org/html/license.html
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
*/
#ifndef xlsdk_autolink_hpp
#define xlsdk_autolink_hpp
// select toolset:
#if (_MSC_VER < 1200)
# error "unsupported Microsoft compiler"
#elif (_MSC_VER == 1200)
# define XLSDK_LIB_TOOLSET "vc6"
#elif (_MSC_VER == 1300)
# define XLSDK_LIB_TOOLSET "vc7"
#elif (_MSC_VER == 1310)
# define XLSDK_LIB_TOOLSET "vc71"
#elif (_MSC_VER == 1400)
# define XLSDK_LIB_TOOLSET "vc80"
#else
# error "unknown Microsoft compiler"
#endif
/*** libraries to be linked ***/
// select thread opt:
#ifdef _MT
# define XLSDK_LIB_THREAD_OPT "-mt"
#else
# define XLSDK_LIB_THREAD_OPT
#endif
// select linkage opt:
#ifdef _DLL
# if defined(_DEBUG)
# define XLSDK_LIB_RT_OPT "-gd"
# else
# define XLSDK_LIB_RT_OPT
# endif
#else
# if defined(_DEBUG)
# define XLSDK_LIB_RT_OPT "-sgd"
# else
# define XLSDK_LIB_RT_OPT "-s"
# endif
#endif
#define XLSDK_LIB_NAME "xlsdk-" XLSDK_LIB_TOOLSET XLSDK_LIB_THREAD_OPT XLSDK_LIB_RT_OPT ".lib"
#pragma comment(lib, XLSDK_LIB_NAME)
#ifdef BOOST_LIB_DIAGNOSTIC
# pragma message("Linking to lib file: " XLSDK_LIB_NAME)
#endif
#endif
|