Bug 617272 - AIX compilation error for Firefox-3.6.12 source storage/src/variantToSQLiteT_impl.h", line 56.12: 1540-0274 (S) The name lookup for "sqlit e3_T_null" did not find a declaration; r,a=sdwilsh
authorUli Link <Bug 61727ul.mcamafia@linkitup.de>
Mon, 17 Jan 2011 12:25:17 -0500
changeset 60703 d7930adbeb1a32d0b1ee791deaf206415703855d
parent 60702 14f62a4633a631890e4b54e787f70cb1d0fe5893
child 60704 70ca6a1b9d29215292eb30749143e160edd2625f
push idunknown
push userunknown
push dateunknown
reviewerssdwilsh
bugs617272
milestone2.0b10pre
Bug 617272 - AIX compilation error for Firefox-3.6.12 source storage/src/variantToSQLiteT_impl.h", line 56.12: 1540-0274 (S) The name lookup for "sqlit e3_T_null" did not find a declaration; r,a=sdwilsh
storage/src/mozStorageBindingParams.cpp
storage/src/mozStorageConnection.cpp
--- a/storage/src/mozStorageBindingParams.cpp
+++ b/storage/src/mozStorageBindingParams.cpp
@@ -63,82 +63,82 @@ struct BindingColumnData
   : stmt(aStmt)
   , column(aColumn)
   {
   }
   sqlite3_stmt *stmt;
   int column;
 };
 
-} // anonymous namespace
-
 ////////////////////////////////////////////////////////////////////////////////
 //// Variant Specialization Functions (variantToSQLiteT)
 
-static int
+int
 sqlite3_T_int(BindingColumnData aData,
               int aValue)
 {
   return ::sqlite3_bind_int(aData.stmt, aData.column + 1, aValue);
 }
 
-static int
+int
 sqlite3_T_int64(BindingColumnData aData,
                 sqlite3_int64 aValue)
 {
   return ::sqlite3_bind_int64(aData.stmt, aData.column + 1, aValue);
 }
 
-static int
+int
 sqlite3_T_double(BindingColumnData aData,
                  double aValue)
 {
   return ::sqlite3_bind_double(aData.stmt, aData.column + 1, aValue);
 }
 
-static int
+int
 sqlite3_T_text(BindingColumnData aData,
                const nsCString& aValue)
 {
   return ::sqlite3_bind_text(aData.stmt,
                              aData.column + 1,
                              aValue.get(),
                              aValue.Length(),
                              SQLITE_TRANSIENT);
 }
 
-static int
+int
 sqlite3_T_text16(BindingColumnData aData,
                  const nsString& aValue)
 {
   return ::sqlite3_bind_text16(aData.stmt,
                                aData.column + 1,
                                aValue.get(),
                                aValue.Length() * 2, // Length in bytes!
                                SQLITE_TRANSIENT);
 }
 
-static int
+int
 sqlite3_T_null(BindingColumnData aData)
 {
   return ::sqlite3_bind_null(aData.stmt, aData.column + 1);
 }
 
-static int
+int
 sqlite3_T_blob(BindingColumnData aData,
                const void *aBlob,
                int aSize)
 {
   return ::sqlite3_bind_blob(aData.stmt, aData.column + 1, aBlob, aSize,
                              NS_Free);
 
 }
 
 #include "variantToSQLiteT_impl.h"
 
+} // anonymous namespace
+
 ////////////////////////////////////////////////////////////////////////////////
 //// BindingParams
 
 BindingParams::BindingParams(mozIStorageBindingParamsArray *aOwningArray,
                              Statement *aOwningStatement)
 : mLocked(false)
 , mOwningArray(aOwningArray)
 , mOwningStatement(aOwningStatement)
--- a/storage/src/mozStorageConnection.cpp
+++ b/storage/src/mozStorageConnection.cpp
@@ -76,87 +76,88 @@
 PRLogModuleInfo* gStorageLog = nsnull;
 #endif
 
 namespace mozilla {
 namespace storage {
 
 #define PREF_TS_SYNCHRONOUS "toolkit.storage.synchronous"
 
+namespace {
+
 ////////////////////////////////////////////////////////////////////////////////
 //// Variant Specialization Functions (variantToSQLiteT)
 
-static int
+int
 sqlite3_T_int(sqlite3_context *aCtx,
               int aValue)
 {
   ::sqlite3_result_int(aCtx, aValue);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_int64(sqlite3_context *aCtx,
                 sqlite3_int64 aValue)
 {
   ::sqlite3_result_int64(aCtx, aValue);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_double(sqlite3_context *aCtx,
                  double aValue)
 {
   ::sqlite3_result_double(aCtx, aValue);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_text(sqlite3_context *aCtx,
                const nsCString &aValue)
 {
   ::sqlite3_result_text(aCtx,
                         aValue.get(),
                         aValue.Length(),
                         SQLITE_TRANSIENT);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_text16(sqlite3_context *aCtx,
                  const nsString &aValue)
 {
   ::sqlite3_result_text16(aCtx,
                           aValue.get(),
                           aValue.Length() * 2, // Number of bytes.
                           SQLITE_TRANSIENT);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_null(sqlite3_context *aCtx)
 {
   ::sqlite3_result_null(aCtx);
   return SQLITE_OK;
 }
 
-static int
+int
 sqlite3_T_blob(sqlite3_context *aCtx,
                const void *aData,
                int aSize)
 {
   ::sqlite3_result_blob(aCtx, aData, aSize, NS_Free);
   return SQLITE_OK;
 }
 
 #include "variantToSQLiteT_impl.h"
 
 ////////////////////////////////////////////////////////////////////////////////
 //// Local Functions
 
-namespace {
 #ifdef PR_LOGGING
 void tracefunc (void *aClosure, const char *aStmt)
 {
   PR_LOG(gStorageLog, PR_LOG_DEBUG, ("sqlite3_trace on %p for '%s'", aClosure,
                                      aStmt));
 }
 #endif