forked from madorin/fibplus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
FIBPlus.inc
318 lines (251 loc) · 5.9 KB
/
FIBPlus.inc
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
{***************************************************************}
{ FIBPlus - component library for direct access to Firebird and }
{ InterBase databases }
{ }
{ FIBPlus is based in part on the product }
{ Free IB Components, written by Gregory H. Deatz for }
{ Hoagland, Longo, Moran, Dunst & Doukas Company. }
{ mailto:[email protected] }
{ }
{ Copyright (c) 1998-2012 Devrace Ltd. }
{ Written by Serge Buzadzhy ([email protected]) }
{ }
{ ------------------------------------------------------------- }
{ FIBPlus home page: http://www.fibplus.com/ }
{ FIBPlus support : http://www.devrace.com/support/ }
{ ------------------------------------------------------------- }
{ }
{ Please see the file License.txt for full license information }
{***************************************************************}
{$DEFINE INTERNAL}
// {$DEFINE NO_GUI}
// {$DEFINE FIBPLUS_TRIAL}
// {$DEFINE SUPPORT_IB2007}
{$DEFINE NO_USE_COMP }
//{$DEFINE CSMonitor}
{$DEFINE IBINSTALL_SUPPORT}
//{$DEFINE UNICODE_TO_STRING_FIELDS}
// {$DEFINE SUPPORT_KOI8_CHARSET}
//{$ENDIF}
// {$DEFINE NO_MONITOR}
//{$DEFINE LONG_METADATA_NAMES}
//{$DEFINE OBSOLETE_PROPS}
(*For load old dfms*)
//{$DEFINE NO_GUI}
//{$DEFINE USE_DEPRECATE_METHODS1}
//{$DEFINE USE_DEPRECATE_METHODS2}
(* FIBDabase.DataSets -> FIBDabase.Bases*)
//{$DEFINE DFM_VERSION1}
(* This define for save dfm with old format *)
(*Conditions and FIBDataSet.Options*)
{$DEFINE SUPPORT_ARRAY_FIELD}
(* This define for ARRAY FIELD SUPPORT *)
{$DEFINE INC_SERVICE_SUPPORT}
(* This define for include service components *)
{$IFDEF VER130}
{$IFDEF BCB} // C++Buider 5.0
{$ObjExportAll on}
{$ENDIF}
{$ENDIF}
{$IFDEF VER140}
{$DEFINE D6+}
{$IFDEF BCB} // C++Buider 6.0
{$ObjExportAll on}
{$ENDIF}
{$ENDIF}
{$IFDEF VER150}
{$DEFINE D7+}
{$ENDIF}
// Delphi 2005 defines
{$IFDEF VER170}
{$DEFINE D2005+}
{$INLINE OFF}
{$ENDIF}
// Delphi 2006
{$IFDEF VER180}
{$DEFINE D2006+}
{$DEFINE TWideDataSet}
{$ENDIF}
// Delphi 2007
{$IFDEF VER185}
{$DEFINE D2007+}
{$DEFINE TWideDataSet}
{$ENDIF}
// Delphi 2009
{$IFDEF VER200}
{$DEFINE D2009+}
{$DEFINE TWideDataSet}
{$ENDIF}
// Delphi 2010
{$IFDEF VER210}
{$DEFINE D2010+}
{$DEFINE TWideDataSet}
// {$WARNINGS OFF}
{$ENDIF}
// Delphi 2011
{$IFDEF VER220}
{$DEFINE D_XE}
{$DEFINE TWideDataSet}
{$ENDIF}
// Delphi XE2
{$IFDEF VER230}
{$DEFINE D_XE2}
{$DEFINE TWideDataSet}
{$ENDIF}
// Delphi XE3
{$IFDEF VER240}
{$DEFINE D_XE3}
{$ENDIF}
// Delphi XE4
{$IFDEF VER250}
{$DEFINE D_XE4}
{$ENDIF}
// Delphi XE5
{$IFDEF VER260}
{$DEFINE D_XE5}
{$ENDIF}
// Delphi XE6
{$IFDEF VER270}
{$DEFINE D_20}
{$ENDIF}
// Delphi XE7
{$IFDEF VER280}
{$DEFINE D_21}
{$ENDIF}
// Delphi XE8
{$IFDEF VER290}
{$DEFINE D_22}
{$ENDIF}
// DX10
{$IFDEF VER300}
{$DEFINE D_23}
{$ENDIF}
// DX10.1
{$IFDEF VER310}
{$DEFINE D_24}
{$ENDIF}
// DX10.2
{$IFDEF VER320}
{$DEFINE D_25}
{$ENDIF}
{$IFDEF VER330}
{$DEFINE D_25}
{$ENDIF}
//---------------------------------
{$IFDEF D_25}
{$DEFINE D_24}
{$ENDIF}
{$IFDEF D_24}
{$DEFINE D_23}
{$ENDIF}
{$IFDEF D_23}
{$DEFINE D_22}
{$ENDIF}
{$IFDEF D_22}
{$DEFINE D_21}
{$ENDIF}
{$IFDEF D_21}
{$DEFINE D_20}
{$ENDIF}
{$IFDEF D_20}
{$DEFINE D_XE5}
{$ENDIF}
{$IFDEF D_XE5}
{$DEFINE D_XE4}
{$ENDIF}
{$IFDEF D_XE4}
{$DEFINE D_XE3}
{$ENDIF}
{$IFDEF D_XE3}
{$DEFINE D_XE2}
{$ENDIF}
{$IFDEF D_XE2}
{$DEFINE D_XE}
{$ENDIF}
{$IFDEF D_XE}
{$DEFINE D2010+}
{$ENDIF}
{$IFDEF D2010+}
{$DEFINE D2009+}
{$ENDIF}
{$IFDEF D2009+}
{$DEFINE D2007+}
{$ENDIF}
{$IFDEF D2007+}
{$DEFINE D2006+}
{$ENDIF}
{$IFDEF D2006+}
{$DEFINE D2005+}
{$ENDIF}
{$IFDEF D2005+}
{$DEFINE D7+}
{$ENDIF}
{$IFDEF D7+}
{$DEFINE D6+}
{$WARN UNSAFE_TYPE OFF}
{$WARN UNSAFE_CODE OFF}
{$WARN UNSAFE_CAST OFF}
{$WARN SYMBOL_PLATFORM OFF}
{$WARNINGS OFF}
// {$WARN IMPLICIT_STRING_CAST_LOSS OFF}
{$ENDIF}
{$IFDEF D2009+}
{$WARN WIDECHAR_REDUCED OFF}
{$WARN IMPLICIT_STRING_CAST OFF}
{$WARN IMPLICIT_STRING_CAST_LOSS OFF}
{$ENDIF}
{$IFDEF D6+}
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN SYMBOL_PLATFORM OFF}
{$ENDIF}
(* {$IFNDEF LINUX}
{$DEFINE MSWINDOWS}
{$ELSE}
{$DEFINE NO_MONITOR}
{$DEFINE NO_REGISTRY}
{$UNDEF SUPPORT_KOI8_CHARSET}
{$UNDEF SUPPORT_DOS_CHARSET}
{$ENDIF}
*)
{$IFNDEF LINUX}
{$IFNDEF NO_GUI}
{$IFNDEF MACOS}
{$IFNDEF D_XE2}
{$DEFINE DIRECT_USE_DB_LOGIN_FORM}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFNDEF D7+}
{$DEFINE WINDOWS}
{$ENDIF}
{$IFDEF MSWINDOWS}
{$DEFINE WINDOWS}
{$ELSE}
{$IFNDEF WINDOWS}
{$DEFINE NO_WINDOWS}
{$DEFINE NO_REGISTRY}
{$DEFINE NO_MONITOR}
{$DEFINE NO_GUI}
{$UNDEF SUPPORT_KOI8_CHARSET}
{$UNDEF SUPPORT_DOS_CHARSET}
{$ENDIF}
{$ENDIF}
{$IFNDEF D2009}
{$UNDEF UNICODE_TO_STRING_FIELDS}
{$ENDIF}
(*
* Compiler defines
*)
{$A+} (* Aligned records: On *)
{$B-} (* Short circuit boolean expressions: Off *)
{$G+} (* Imported data: On *)
{$H+} (* Huge Strings: On *)
{$J-} (* Modification of Typed Constants: Off *)
{$M+} (* Generate run-time type information: On *)
{$Q-} (* Overflow checks: Off *)
{$R-} (* Range checks: Off *)
{$T+} (* Typed address: On *)
{$U+} (* Pentim-safe FDIVs: On *)
{$X+} (* Extended syntax: On *)
{$Z1} (* Minimum Enumeration Size: 1 Byte *)