-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
436 lines (417 loc) · 10.2 KB
/
common.h
File metadata and controls
436 lines (417 loc) · 10.2 KB
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
/*
* @author Mário Soares
* @contributors Jefferson González
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @note
* Some parts of this file are auto-generated.
*/
#ifndef WXPHP_COMMON_H_GUARD
#define WXPHP_COMMON_H_GUARD
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef PHP_WIN32
//To prevent some character strings to
//wide characters string compilation errors
#define _WINSOCKAPI_
//For disabling warnings about
//unreferenced local variable
#pragma warning (disable : 4101)
#pragma warning (disable : 4102)
#pragma warning (disable : 4700)
//Disable forcing zend_bool to bool warnings
#pragma warning (disable : 4800)
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#else
#include <wx/wxprec.h>
#endif
#if !wxUSE_THREADS
#error "This sample requires thread support!"
#endif
#if !wxUSE_UNICODE
#define tcscmp strcmp
#else
#define tcscmp wcscmp
#endif
#include <wx/thread.h>
#include <wx/aui/aui.h>
#include <wx/fs_zip.h>
/**
* Space reserved for autogenerated #include declarations
*/
// entries --->
#include <wx/msgdlg.h>
#include <wx/image.h>
#include <wx/rawbmp.h>
#include <wx/mimetype.h>
#include <wx/datetime.h>
#include <wx/aboutdlg.h>
#include <wx/accel.h>
#include <wx/access.h>
#include <wx/event.h>
#include <wx/affinematrix2d.h>
#include <wx/affinematrix2dbase.h>
#include <wx/animate.h>
#include <wx/any.h>
#include <wx/anybutton.h>
#include <wx/app.h>
#include <wx/apptrait.h>
#include <wx/archive.h>
#include <wx/fs_arc.h>
#include <wx/dynarray.h>
#include <wx/arrstr.h>
#include <wx/artprov.h>
#include <wx/aui/dockart.h>
#include <wx/aui/framemanager.h>
#include <wx/aui/auibook.h>
#include <wx/dcbuffer.h>
#include <wx/bannerwindow.h>
#include <wx/bitmap.h>
#include <wx/bmpbuttn.h>
#include <wx/bmpcbox.h>
#include <wx/dataobj.h>
#include <wx/tglbtn.h>
#include <wx/bookctrl.h>
#include <wx/sizer.h>
#include <wx/brush.h>
#include <wx/stream.h>
#include <wx/utils.h>
#include <wx/busyinfo.h>
#include <wx/button.h>
#include <wx/laywin.h>
#include <wx/calctrl.h>
#include <wx/caret.h>
#include <wx/buffer.h>
#include <wx/checkbox.h>
#include <wx/checklst.h>
#include <wx/choice.h>
#include <wx/choicebk.h>
#include <wx/object.h>
#include <wx/ipc.h>
#include <wx/clntdata.h>
#include <wx/dcclient.h>
#include <wx/clipbrd.h>
#include <wx/cmdline.h>
#include <wx/collpane.h>
#include <wx/colour.h>
#include <wx/colourdata.h>
#include <wx/gdicmn.h>
#include <wx/colordlg.h>
#include <wx/clrpicker.h>
#include <wx/combobox.h>
#include <wx/combo.h>
#include <wx/cmdproc.h>
#include <wx/commandlinkbutton.h>
#include <wx/thread.h>
#include <wx/config.h>
#include <wx/ipcbase.h>
#include <wx/cshelp.h>
#include <wx/control.h>
#include <wx/ctrlsub.h>
#include <wx/convauto.h>
#include <wx/strconv.h>
#include <wx/cursor.h>
#include <wx/custombgwin.h>
#include <wx/socket.h>
#include <wx/datstrm.h>
#include <wx/dataview.h>
#include <wx/dateevt.h>
#include <wx/datectrl.h>
#include <wx/dc.h>
#include <wx/memory.h>
#include <wx/debugrpt.h>
#include <wx/renderer.h>
#include <wx/dialog.h>
#include <wx/dialup.h>
#include <wx/dir.h>
#include <wx/dirdlg.h>
#include <wx/dirctrl.h>
#include <wx/filepicker.h>
#include <wx/display.h>
#include <wx/docview.h>
#include <wx/docmdi.h>
#include <wx/dragimag.h>
#include <wx/dnd.h>
#include <wx/dynlib.h>
#include <wx/editlbox.h>
#include <wx/encconv.h>
#include <wx/eventfilter.h>
#include <wx/evtloop.h>
#include <wx/generic/helpext.h>
#include <wx/ffile.h>
#include <wx/wfstream.h>
#include <wx/file.h>
#include <wx/fileconf.h>
#include <wx/filectrl.h>
#include <wx/filedlg.h>
#include <wx/filehistory.h>
#include <wx/filename.h>
#include <wx/filesys.h>
#include <wx/fswatcher.h>
#include <wx/translation.h>
#include <wx/fs_filter.h>
#include <wx/fdrepdlg.h>
#include <wx/valnum.h>
#include <wx/font.h>
#include <wx/fontdata.h>
#include <wx/fontdlg.h>
#include <wx/fontenum.h>
#include <wx/fontmap.h>
#include <wx/fontpicker.h>
#include <wx/frame.h>
#include <wx/volume.h>
#include <wx/protocol/ftp.h>
#include <wx/gauge.h>
#include <wx/gbsizer.h>
#include <wx/dcgraph.h>
#include <wx/gdiobj.h>
#include <wx/progdlg.h>
#include <wx/valgen.h>
#include <wx/glcanvas.h>
#include <wx/graphics.h>
#include <wx/grid.h>
#include <wx/hashmap.h>
#include <wx/hashset.h>
#include <wx/hash.h>
#include <wx/headercol.h>
#include <wx/headerctrl.h>
#include <wx/help.h>
#include <wx/vscroll.h>
#include <wx/html/htmlcell.h>
#include <wx/html/htmlwin.h>
#include <wx/html/htmprint.h>
#include <wx/html/htmlfilt.h>
#include <wx/html/helpctrl.h>
#include <wx/html/helpdata.h>
#include <wx/html/helpdlg.h>
#include <wx/html/helpfrm.h>
#include <wx/html/helpwnd.h>
#include <wx/htmllbox.h>
#include <wx/html/htmlpars.h>
#include <wx/html/htmltag.h>
#include <wx/html/winpars.h>
#include <wx/protocol/http.h>
#include <wx/hyperlink.h>
#include <wx/icon.h>
#include <wx/iconbndl.h>
#include <wx/iconloc.h>
#include <wx/windowid.h>
#include <wx/imaglist.h>
#include <wx/layout.h>
#include <wx/infobar.h>
#include <wx/init.h>
#include <wx/fs_inet.h>
#include <wx/joystick.h>
#include <wx/kbdstate.h>
#include <wx/intl.h>
#include <wx/platinfo.h>
#include <wx/list.h>
#include <wx/listbook.h>
#include <wx/listbox.h>
#include <wx/listctrl.h>
#include <wx/log.h>
#include <wx/longlong.h>
#include <wx/mdi.h>
#include <wx/mediactrl.h>
#include <wx/dcmemory.h>
#include <wx/fs_mem.h>
#include <wx/mstream.h>
#include <wx/menu.h>
#include <wx/menuitem.h>
#include <wx/msgout.h>
#include <wx/msgqueue.h>
#include <wx/metafile.h>
#include <wx/minifram.h>
#include <wx/dcmirror.h>
#include <wx/module.h>
#include <wx/mousemanager.h>
#include <wx/mousestate.h>
#include <wx/choicdlg.h>
#include <wx/fontutil.h>
#include <wx/containr.h>
#include <wx/nonownedwnd.h>
#include <wx/notebook.h>
#include <wx/notifmsg.h>
#include <wx/numformatter.h>
#include <wx/odcombo.h>
#include <wx/printdlg.h>
#include <wx/cmndata.h>
#include <wx/palette.h>
#include <wx/panel.h>
#include <wx/textdlg.h>
#include <wx/filefn.h>
#include <wx/pen.h>
#include <wx/persist.h>
#include <wx/persist/bookctrl.h>
#include <wx/persist/toplevel.h>
#include <wx/persist/treebook.h>
#include <wx/persist/window.h>
#include <wx/propgrid/property.h>
#include <wx/propgrid/editors.h>
#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/propgridpagestate.h>
#include <wx/pickerbase.h>
#include <wx/geometry.h>
#include <wx/popupwin.h>
#include <wx/position.h>
#include <wx/dcps.h>
#include <wx/power.h>
#include <wx/print.h>
#include <wx/dcprint.h>
#include <wx/process.h>
#include <wx/propgrid/propgridiface.h>
#include <wx/propgrid/manager.h>
#include <wx/propdlg.h>
#include <wx/protocol/protocol.h>
#include <wx/protocol/log.h>
#include <wx/quantize.h>
#include <wx/radiobox.h>
#include <wx/radiobut.h>
#include <wx/rearrangectrl.h>
#include <wx/recguard.h>
#include <wx/regex.h>
#include <wx/region.h>
#include <wx/ribbon/art.h>
#include <wx/ribbon/bar.h>
#include <wx/ribbon/buttonbar.h>
#include <wx/ribbon/control.h>
#include <wx/ribbon/gallery.h>
#include <wx/ribbon/page.h>
#include <wx/ribbon/panel.h>
#include <wx/ribbon/toolbar.h>
#include <wx/richmsgdlg.h>
#include <wx/richtext/richtextbuffer.h>
#include <wx/richtext/richtextstyles.h>
#include <wx/richtext/richtextctrl.h>
#include <wx/richtext/richtextformatdlg.h>
#include <wx/richtext/richtextprint.h>
#include <wx/richtext/richtexthtml.h>
#include <wx/richtext/richtextstyledlg.h>
#include <wx/richtext/richtextxml.h>
#include <wx/richtooltip.h>
#include <wx/sashwin.h>
#include <wx/scopedarray.h>
#include <wx/scopedptr.h>
#include <wx/scopeguard.h>
#include <wx/dcscreen.h>
#include <wx/scrolbar.h>
#include <wx/scrolwin.h>
#include <wx/srchctrl.h>
#include <wx/sharedptr.h>
#include <wx/snglinst.h>
#include <wx/xrc/xh_sizer.h>
#include <wx/slider.h>
#include <wx/sckstrm.h>
#include <wx/sound.h>
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
#include <wx/splash.h>
#include <wx/splitter.h>
#include <wx/stack.h>
#include <wx/stackwalk.h>
#include <wx/stdpaths.h>
#include <wx/statbmp.h>
#include <wx/statbox.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/statusbr.h>
#include <wx/stdstream.h>
#include <wx/stopwatch.h>
#include <wx/textctrl.h>
#include <wx/string.h>
#include <wx/sstream.h>
#include <wx/tokenzr.h>
#include <wx/stc/stc.h>
#include <wx/dcsvg.h>
#include <wx/richtext/richtextsymboldlg.h>
#include <wx/sysopt.h>
#include <wx/settings.h>
#include <wx/tarstrm.h>
#include <wx/taskbar.h>
#include <wx/sckipc.h>
#include <wx/textcompleter.h>
#include <wx/textentry.h>
#include <wx/textfile.h>
#include <wx/txtstrm.h>
#include <wx/valtext.h>
#include <wx/textwrapper.h>
#include <wx/timectrl.h>
#include <wx/timer.h>
#include <wx/tipdlg.h>
#include <wx/tipwin.h>
#include <wx/toolbar.h>
#include <wx/toolbook.h>
#include <wx/tooltip.h>
#include <wx/toplevel.h>
#include <wx/tracker.h>
#include <wx/treebook.h>
#include <wx/treectrl.h>
#include <wx/treebase.h>
#include <wx/treelist.h>
#include <wx/uiaction.h>
#include <wx/unichar.h>
#include <wx/uri.h>
#include <wx/url.h>
#include <wx/ustring.h>
#include <wx/validate.h>
#include <wx/variant.h>
#include <wx/vector.h>
#include <wx/versioninfo.h>
#include <wx/vidmode.h>
#include <wx/window.h>
#include <wx/vlbox.h>
#include <wx/weakref.h>
#include <wx/webview.h>
#include <wx/webviewarchivehandler.h>
#include <wx/wupdlock.h>
#include <wx/withimages.h>
#include <wx/wizard.h>
#include <wx/wrapsizer.h>
#include <wx/xlocale.h>
#include <wx/xml/xml.h>
#include <wx/xrc/xmlres.h>
#include <wx/zipstrm.h>
#include <wx/zstream.h>
#include <wx/debug.h>
// <--- entries
/**
* Import configure options when building outside
* of the PHP source tree
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef WORDS_BIGENDIAN
#undef WORDS_BIGENDIAN
#endif
#ifdef M_PI
#undef M_PI
#endif
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
/**
* Conflicting macro redifined on PHP, previously defined on wxWidgets
*/
#ifdef PHP_WIN32
#undef HAVE_STRNLEN
#endif
/**
* Include PHP Standard Header
*/
extern "C" {
#include "php.h"
#include "zend_API.h" //Declaration for zend_declare_class_constant_long
#include "ext/standard/info.h" //Declaration of ini functions like php_info_print_table_start()
//For backward compatibility with older versions of php that didnt
//implemented this macro
#ifndef PHP_FE_END
#define PHP_FE_END {NULL, NULL, NULL}
#endif
}
#endif //WXPHP_COMMON_H_GUARD