[cig-commits] r11933 - in cs/spatialdata-0.1/trunk/tests/libtests: geocoords spatialdb utils

willic3 at geodynamics.org willic3 at geodynamics.org
Fri May 9 09:37:44 PDT 2008


Author: willic3
Date: 2008-05-09 09:37:44 -0700 (Fri, 09 May 2008)
New Revision: 11933

Modified:
   cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeo.cc
   cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoLocalCart.cc
   cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoProj.cc
   cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestProjector.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestGravityField.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSCECCVMH.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDB.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDBQuery.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleIOAscii.cc
   cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestUniformDB.cc
   cs/spatialdata-0.1/trunk/tests/libtests/utils/TestPointsStream.cc
Log:
For all code that uses the functions strcasecmp, memcpy, or strcmp, put in
the corresponding include file explicitly.  Some of the include files don't
get included automatically, depending on the compiler.




Modified: cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeo.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeo.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeo.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -18,6 +18,8 @@
 #include "spatialdata/geocoords/CSGeo.hh" // USES CSGeo
 #include <math.h> // USES M_PI
 
+#include <string.h> // USES memcpy() and strcmp()
+#include <strings.h> // USES strcasecmp()
 #include <sstream> // USES std::stringstream
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoLocalCart.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoLocalCart.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoLocalCart.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -19,6 +19,8 @@
 #include "spatialdata/geocoords/CSGeoLocalCart.hh" // USES CSGeoLocalCart
 
 #include <math.h> // USES fabs()
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <sstream> // USES std::stringstream
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoProj.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoProj.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestCSGeoProj.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -20,6 +20,8 @@
 #include "spatialdata/geocoords/Projector.hh" // USES Projector
 
 #include <math.h> // USES M_PI
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <sstream> // USES std::stringstream
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestProjector.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestProjector.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/geocoords/TestProjector.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -19,6 +19,8 @@
 #include "spatialdata/geocoords/CoordSys.hh" // USES CSGeo
 #include "spatialdata/geocoords/CSGeo.hh" // USES CSGeo
 
+#include <string.h> // USES strcmp()
+#include <strings.h> // USES strcasecmp()
 #include <sstream> // USES std::stringstream
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestGravityField.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestGravityField.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestGravityField.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -21,6 +21,7 @@
 #include "spatialdata/geocoords/CSGeoProj.hh" // USES CSGeoProj
 #include "spatialdata/geocoords/CSGeoLocalCart.hh" // USES CSGeoLocalCart
 
+#include <string.h> // USES strcmp()
 #include <math.h> // USES sqrt()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSCECCVMH.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSCECCVMH.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSCECCVMH.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -18,6 +18,7 @@
 
 #include "spatialdata/geocoords/CSGeo.hh" // USES CSGeo
 
+#include <string.h> // USES strcmp()
 #include <math.h> // USES fabs()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDB.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDB.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDB.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -23,6 +23,8 @@
 
 #include "spatialdata/geocoords/CSCart.hh" // USE CSCart
 
+#include <string.h> // USES strcmp() and memcpy()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( spatialdata::spatialdb::TestSimpleDB );
 

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDBQuery.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDBQuery.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleDBQuery.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -23,6 +23,8 @@
 
 #include "data/SimpleDBQueryData.hh"
 
+#include <string.h> // USES memcpy()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( spatialdata::spatialdb::TestSimpleDBQuery );
 

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleIOAscii.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleIOAscii.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestSimpleIOAscii.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -24,6 +24,7 @@
 
 #include "spatialdata/spatialdb/SimpleDBTypes.hh" // USES SimpleDBTypes
 
+#include <string.h> // USES strcmp()
 #include <sstream> // USES std::ostringstream
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestUniformDB.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestUniformDB.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/spatialdb/TestUniformDB.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -18,6 +18,8 @@
 
 #include "spatialdata/geocoords/CSCart.hh" // USES CSCart
 
+#include <string.h> // USES strcmp()
+
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( spatialdata::spatialdb::TestUniformDB );
 

Modified: cs/spatialdata-0.1/trunk/tests/libtests/utils/TestPointsStream.cc
===================================================================
--- cs/spatialdata-0.1/trunk/tests/libtests/utils/TestPointsStream.cc	2008-05-09 16:15:26 UTC (rev 11932)
+++ cs/spatialdata-0.1/trunk/tests/libtests/utils/TestPointsStream.cc	2008-05-09 16:37:44 UTC (rev 11933)
@@ -16,6 +16,7 @@
 
 #include "spatialdata/utils/PointsStream.hh" // USES PointStream
 
+#include <string.h> // USES strcmp()
 #include <sstream> // USES std::stringstream
 
 // ----------------------------------------------------------------------



More information about the cig-commits mailing list