blob: 0293e08d6a2dd4cbf8304062bc792393bdabdf11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
#if !defined(HISTORYSTATS_GUARD__GLOABLS_H)
#define HISTORYSTATS_GUARD__GLOABLS_H
#pragma warning(disable: 4018) // FIXME: supress "signed/unsigned mismatch" warnings
/*
* nicer interface for miranda
*/
#define _CRT_NON_CONFORMING_SWPRINTFS
#define _WIN32_WINDOWS 0x0500 // for WM_MOUSEWHEEL
#pragma warning(disable:4267)
#include <windows.h>
#include <commctrl.h>
#include <Uxtheme.h>
#include <vsstyle.h>
#pragma comment(lib, "UxTheme.lib")
#include <stdio.h>
#include <cstdio>
#include <cassert>
#include <ctime>
#include <string>
#include <fstream>
#include <sstream>
#define MIRANDA_VER 0x0A00
#include <newpluginapi.h>
#include <m_awaymsg.h> // not used
#include <m_button.h> // not used
#include <m_chat.h> // not used
#include <m_clc.h>
#include <m_clist.h>
#include <m_contacts.h>
#include <m_database.h>
#include <m_email.h> // not used
#include <m_file.h> // not used
#include <m_findadd.h> // not used
#include <m_fontservice.h> // not used
#include <m_genmenu.h> // not used
#include <m_history.h> // not used
#include <m_icolib.h>
#include <m_idle.h> // not used
#include <m_ignore.h> // not used
#include <m_langpack.h>
#include <m_message.h> // not used
#include <m_netlib.h> // not used
#include <m_options.h>
#include <m_popup.h> // not used
#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_skin.h>
#include <m_system.h>
#include <m_url.h> // not used
#include <m_userinfo.h> // not used
#include <m_utils.h>
#include <m_imgsrvc.h>
#include <m_timezones.h>
#include <m_addcontact.h> // not used, depends on m_protosvc.h
#include <m_icq.h> // depends on m_protosvc.h
#include <m_metacontacts.h>
#include <m_historystats.h> // our own header
#include "mu_common.h"
#include "version.h"
/*
* some patterns and similar stuff we want to use everywhere
*/
#include "utils/pattern.h"
/*
* some language 'extensions' (people will hate me because of this) and useful classes
*/
#include "_langext.h"
#include "_strfunc.h"
#include "_format.h"
/*
* convenience typedefs
*/
namespace ext
{
namespace w
{
const WCHAR* const endl = L"\n";
typedef std::basic_string <WCHAR> string;
typedef std::basic_ofstream<WCHAR> ofstream;
typedef std::basic_ostream <WCHAR> ostream;
typedef ext::basic_strfunc <WCHAR> strfunc;
typedef ext::basic_format <WCHAR> format;
typedef ext::basic_kformat <WCHAR> kformat;
}
namespace a
{
const char* const endl = "\n";
typedef std::basic_string <char> string;
typedef std::basic_ofstream<char> ofstream;
typedef std::basic_ostream <char> ostream;
typedef ext::basic_strfunc <char> strfunc;
typedef ext::basic_format <char> format;
typedef ext::basic_kformat <char> kformat;
}
// choose the right T-style namespace for this compilation
namespace t = w;
// import T-style classes for easier access
using namespace t;
}
#endif // HISTORYSTATS_GUARD__GLOABLS_H
|