Changeset 170

Show
Ignore:
Timestamp:
07/25/08 12:17:23 (5 months ago)
Author:
zork
Message:

win32 fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dba/bakefile/dba.bkl

    r169 r170  
    126126      <dll-link>dbaxml</dll-link> 
    127127    </template> 
    128  
     128    <template id="dbatest-lib-static" template="dba-lib-static"> 
     129    </template> 
     130    <template id="dbatest-exe-static" template="dba-exe-static"> 
     131      <static-link>dbatest</static-link> 
     132    </template> 
    129133  </if> 
    130134</makefile> 
  • trunk/dba/dba/xmlutils.cpp

    r154 r170  
    1818char* 
    1919XMLUtils::getNsFromName(const char* pName) { 
    20   char* nspos = strchr(pName,':'); 
     20  const char* nspos = strchr(pName,':'); 
    2121  if (nspos == NULL) 
    2222    return NULL; 
     
    3030char* 
    3131XMLUtils::getNameWithoutNs(const char* pName) { 
    32   char* nspos = strchr(pName,':'); 
     32  const char* nspos = strchr(pName,':'); 
    3333  if (nspos == NULL) 
    3434    return strdup(pName); 
     
    4545void  
    4646XMLUtils::splitName(const char* pName, char* pRetData[1]) { 
    47   char* nspos = strchr(pName,':'); 
     47  const char* nspos = strchr(pName,':'); 
    4848  if (nspos == NULL) { 
    4949    pRetData[1] = strdup(pName); 
  • trunk/wxdba/wxdba.bkl

    r169 r170  
    160160  <set var="MSVC6PRJ_MERGED_TARGETS" append="1">libwxdba_gui=libwxdbagui_static+libwxdbagui_dynamic</set> 
    161161 
    162   <set var="CSVLIB_STATIC"> 
    163     <if cond="CSV==1">dbacsv$(LIBDEBUGSUFFIX)</if> 
    164   </set> 
    165   <set var="XMLLIB_STATIC"> 
    166     <if cond="XML==1">dbaxml$(LIBDEBUGSUFFIX)</if> 
    167   </set> 
    168  
    169162  <!--  
    170163  cppunit test  
     
    183176      test/xmltestcase.cpp 
    184177    </sources> 
    185     <sys-lib>$(CSVLIB_STATIC)</sys-lib> 
    186     <sys-lib>$(XMLLIB_STATIC)</sys-lib> 
    187   </template> 
    188  
    189   <exe id="wxdba_test_static" template_append="testbase" cond="SHARED=='0' and USE_GUI=='1' and TESTS=='1'"> 
     178  </template> 
     179 
     180  <exe id="wxdba_test_static" template_append="testbase,dba-csv-exe-static,dba-xml-exe-static" cond="SHARED=='0' and USE_GUI=='1' and TESTS=='1'"> 
    190181    <nameexe>wxdba_test_static</nameexe> 
    191182    <library>libwxdbabase_static</library> 
     
    193184  </exe> 
    194185 
    195   <exe id="wxdba_test_dynamic" template_append="testbase" cond="SHARED=='1' and USE_GUI=='1' and TESTS=='1'"> 
     186  <exe id="wxdba_test_dynamic" template_append="testbase,dba-csv-exe-static,dba-xml-exe-static" cond="SHARED=='1' and USE_GUI=='1' and TESTS=='1'"> 
    196187    <nameexe>wxdba_test_dynamic</nameexe> 
    197188    <library>libwxdbabase_dynamic</library> 
  • trunk/wxdba/wxdba/csvarchive.cpp

    r20 r170  
    77// 
    88// 
     9#ifdef USE_CSV 
     10 
    911#include "csvarchive.h" 
    1012#include "string_filter.h" 
     
    171173} 
    172174 
     175} //namespace 
    173176 
    174 
     177#endif 
     178 
     179 
  • trunk/wxdba/wxdba/csvistream.cpp

    r20 r170  
    77// 
    88// 
     9#ifdef USE_CSV 
     10 
    911#include "csvistream.h" 
    1012#include "wxutils.h" 
     
    9597} 
    9698 
     99} //namespace 
    97100 
    98 
     101#endif 
     102 
  • trunk/wxdba/wxdba/csvostream.cpp

    r21 r170  
    77// 
    88// 
     9 
     10#ifdef USE_CSV 
     11 
    912#include "csvostream.h" 
    1013#include "exception.h" 
     
    6871} 
    6972 
     73} //namespace 
    7074 
    71 
     75#endif 
     76 
  • trunk/wxdba/wxdba/exception.cpp

    r79 r170  
    4848    throw StoreableFilterException(static_cast<const dba::StoreableFilterException&>(pEx)); 
    4949  }; 
     50#ifdef USE_CSV 
    5051  if (typeid(pEx) == typeid(dba::CSVFileException)) { 
    5152    throw CSVFileException(static_cast<const dba::CSVFileException&>(pEx)); 
     
    5455    throw CSVParseException(static_cast<const dba::CSVParseException&>(pEx)); 
    5556  }; 
     57#endif 
     58#ifdef USE_XML 
     59  if (typeid(pEx) == typeid(dba::XMLException)) { 
     60    throw XMLException(static_cast<const dba::XMLException&>(pEx)); 
     61  }; 
     62#endif 
    5663  throw Exception(pEx); 
    5764};