[cig-commits] r11931 - in cs/spatialdata-0.1/trunk/libsrc: geocoords spatialdb

willic3 at geodynamics.org willic3 at geodynamics.org
Fri May 9 08:53:33 PDT 2008


Author: willic3
Date: 2008-05-09 08:53:33 -0700 (Fri, 09 May 2008)
New Revision: 11931

Modified:
   cs/spatialdata-0.1/trunk/libsrc/geocoords/CSCart.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeo.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoLocalCart.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoProj.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/CSPicklerAscii.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/Converter.cc
   cs/spatialdata-0.1/trunk/libsrc/geocoords/Projector.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/GocadVoxet.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/GravityField.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleDBQuery.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleIOAscii.cc
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/UniformDB.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/libsrc/geocoords/CSCart.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/CSCart.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/CSCart.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -19,6 +19,7 @@
 #include <iostream> // USES std::istream, std::ostream
 
 #include <sstream> // USES std::ostringstream
+#include <strings.h> // USES strcasecmp
 #include <stdexcept> // USES std::runtime_error
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeo.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeo.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeo.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -23,6 +23,7 @@
 #include <iostream> // USES std::istream, std::ostream
 
 #include <stdexcept> // USES std::runtime_error, std::exception
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 extern "C" {

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoLocalCart.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoLocalCart.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoLocalCart.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -27,6 +27,7 @@
 
 #include <stdexcept> // USES std::runtime_error, std::exception
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoProj.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoProj.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/CSGeoProj.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -22,6 +22,7 @@
 
 #include <stdexcept> // USES std::runtime_error, std::exception
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/CSPicklerAscii.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/CSPicklerAscii.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/CSPicklerAscii.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -22,6 +22,7 @@
 
 #include <sstream> // USES std::ostringstream
 #include <stdexcept> // USES std::runtime_error
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/Converter.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/Converter.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/Converter.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -26,6 +26,7 @@
 
 #include <stdexcept> // USES std::runtime_error, std::exception
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/geocoords/Projector.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/geocoords/Projector.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/geocoords/Projector.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -27,6 +27,7 @@
 
 #include <stdexcept> // USES std::runtime_error, std::exception
 #include <sstream> // USES std::ostringstream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/GocadVoxet.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/GocadVoxet.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/GocadVoxet.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -21,6 +21,7 @@
 
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringsgream
+#include <string.h> // USES memcpy() and strcmp()
 #include <assert.h> // USES assert()
 
 #if defined(WORDS_BIGENDIAN)

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/GravityField.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/GravityField.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/GravityField.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -22,6 +22,7 @@
 
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -23,6 +23,8 @@
 #include <math.h> // USES pow()
 #include <sstream> // USES std::ostringstream
 #include <stdexcept> // USES std::logic_error
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleDBQuery.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleDBQuery.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleDBQuery.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -29,6 +29,7 @@
 #define MAXFLOAT 1e+30
 #endif
 
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleIOAscii.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleIOAscii.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/SimpleIOAscii.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -30,6 +30,7 @@
 
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/UniformDB.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/UniformDB.cc	2008-05-09 13:08:56 UTC (rev 11930)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/UniformDB.cc	2008-05-09 15:53:33 UTC (rev 11931)
@@ -18,6 +18,7 @@
 #include <stdexcept> // USES std::runtime_error
 
 #include <sstream> // USES std::ostringsgream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------



More information about the cig-commits mailing list