summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src/commonheaders.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_kyoto/src/commonheaders.h')
-rw-r--r--plugins/Dbx_kyoto/src/commonheaders.h58
1 files changed, 31 insertions, 27 deletions
diff --git a/plugins/Dbx_kyoto/src/commonheaders.h b/plugins/Dbx_kyoto/src/commonheaders.h
index d6063ec1e3..93e4468c6a 100644
--- a/plugins/Dbx_kyoto/src/commonheaders.h
+++ b/plugins/Dbx_kyoto/src/commonheaders.h
@@ -26,6 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#pragma warning(disable:4509)
+#define SIZEOF(x) _countof(x)
+
#include <windows.h>
#include <time.h>
#include <process.h>
@@ -43,6 +45,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_metacontacts.h>
#include <m_protocols.h>
#include <m_netlib.h>
+#include <m_skin.h>
+#include <m_icolib.h>
#define OWN_CACHED_CONTACT
#include <m_db_int.h>
@@ -54,33 +58,33 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
extern HINSTANCE g_hInst;
extern LIST<CDbxKyoto> g_Dbs;
-struct VisitorCopy : public TreeDB::Visitor
-{
- __forceinline explicit VisitorCopy() : kbuf_(NULL), ksiz_(0) {}
-
- const char* visit_full(const char* kbuf, size_t ksiz, const char* vbuf, size_t vsiz, size_t* sp)
- {
- kbuf_ = kbuf;
- ksiz_ = ksiz;
- return NOP;
- }
- const char* kbuf_;
- size_t ksiz_;
-};
-
-struct VisitorCopyRec : public TreeDB::Visitor
-{
- __forceinline explicit VisitorCopyRec() : vbuf_(NULL), vsiz_(0) {}
-
- const char* visit_full(const char* kbuf, size_t ksiz, const char* vbuf, size_t vsiz, size_t* sp)
- {
- vbuf_ = vbuf;
- vsiz_ = vsiz;
- return NOP;
- }
- const char* vbuf_;
- size_t vsiz_;
-};
+struct VisitorCopy : public TreeDB::Visitor
+{
+ __forceinline explicit VisitorCopy() : kbuf_(NULL), ksiz_(0) {}
+
+ const char* visit_full(const char* kbuf, size_t ksiz, const char* vbuf, size_t vsiz, size_t* sp)
+ {
+ kbuf_ = kbuf;
+ ksiz_ = ksiz;
+ return NOP;
+ }
+ const char* kbuf_;
+ size_t ksiz_;
+};
+
+struct VisitorCopyRec : public TreeDB::Visitor
+{
+ __forceinline explicit VisitorCopyRec() : vbuf_(NULL), vsiz_(0) {}
+
+ const char* visit_full(const char* kbuf, size_t ksiz, const char* vbuf, size_t vsiz, size_t* sp)
+ {
+ vbuf_ = vbuf;
+ vsiz_ = vsiz;
+ return NOP;
+ }
+ const char* vbuf_;
+ size_t vsiz_;
+};
class cursor_ptr
{