diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-07 14:08:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-07 14:08:15 +0000 |
commit | 7b8b7fa685ea5de62002d5637b4c34e19dfedeee (patch) | |
tree | e56c7f34d2470edc5cf40dea77d8e6ca0f6a17ac /plugins/Db3x_mmap/src/database.cpp | |
parent | 7f2e5db6faeded54a61e9e1595d6d1596647db4d (diff) |
- the internal DBContact structure extended to hold one more DWORD: contact ID;
- when called from dbchecker, mmap now refuses to check the old versions of database;
- old classes hierarchy removed, all classes were merged into one due to the death of db3x & mmap_sa;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@8061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/database.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/database.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Db3x_mmap/src/database.cpp b/plugins/Db3x_mmap/src/database.cpp index 82085bb7fc..723ddea5a7 100644 --- a/plugins/Db3x_mmap/src/database.cpp +++ b/plugins/Db3x_mmap/src/database.cpp @@ -24,11 +24,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h"
int InitModuleNames(void);
-int InitCache(void);
+int InitMap(void);
int InitIni(void);
void UninitIni(void);
-DWORD CDb3Base::CreateNewSpace(int bytes)
+DWORD CDb3Mmap::CreateNewSpace(int bytes)
{
DWORD ofsNew = m_dbHeader.ofsFileEnd;
m_dbHeader.ofsFileEnd += bytes;
@@ -37,7 +37,7 @@ DWORD CDb3Base::CreateNewSpace(int bytes) return ofsNew;
}
-void CDb3Base::DeleteSpace(DWORD ofs, int bytes)
+void CDb3Mmap::DeleteSpace(DWORD ofs, int bytes)
{
if (ofs+bytes == m_dbHeader.ofsFileEnd) {
log2("freespace %d@%08x",bytes,ofs);
@@ -51,7 +51,7 @@ void CDb3Base::DeleteSpace(DWORD ofs, int bytes) DBFill(ofs, bytes);
}
-DWORD CDb3Base::ReallocSpace(DWORD ofs, int oldSize, int newSize)
+DWORD CDb3Mmap::ReallocSpace(DWORD ofs, int oldSize, int newSize)
{
if (oldSize >= newSize)
return ofs;
@@ -96,7 +96,7 @@ void __cdecl dbpanic(void *arg) TerminateProcess(GetCurrentProcess(),255);
}
-void CDb3Base::DatabaseCorruption(TCHAR *text)
+void CDb3Mmap::DatabaseCorruption(TCHAR *text)
{
int kill = 0;
|