OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
_
b
c
d
h
i
j
m
o
p
r
s
t
u
y
Enumerations
a
o
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
c
d
e
i
l
p
r
s
t
v
Enumerations
c
h
p
q
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Related Symbols
d
g
i
o
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
_
c
d
g
i
m
o
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
▼
OWLNext
►
Overview of ObjectWindows
Accessing application objects
Finding the object
Creating a small application
Using WinMain and OwlMain
►
About command enabling
►
ObjectWindows Exception Handling
Todo List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
documentation
▼
include
►
ocf
▼
owl
▼
private
►
borlandc.h
bwcc.h
►
checks.h
►
cygwin.h
►
defs.h
dir.h
►
dumpstack.h
except.h
►
gmodule.h
►
gnuc.h
►
memory.h
►
mingw32.h
►
msc.h
►
number.h
ole2inc.h
►
owllink.h
►
regexp.h
►
strmdefs.h
►
winelib.h
►
wsysinc.h
animctrl.h
►
appdict.h
►
applicat.h
►
bardescr.h
bitmapga.h
►
bitset.h
btntextg.h
button.h
buttonga.h
celarray.h
checkbox.h
►
checklst.h
►
chooseco.h
►
choosefo.h
clipboar.h
clipview.h
cmdline.h
►
codepages.h
►
colmnhdr.h
►
color.h
►
combobex.h
combobox.h
►
commctrl.h
commdial.h
►
commview.h
configfl.h
►
contain.h
control.h
controlb.h
controlg.h
►
coolbar.h
►
date.h
►
datetime.h
dc.h
►
decframe.h
►
decmdifr.h
►
defs.h
dialog.h
dibitmap.h
►
dispatch.h
►
docking.h
►
docmanag.h
►
doctpl.h
►
docview.h
draglist.h
drawitem.h
edit.h
editfile.h
editsear.h
editview.h
►
eventhan.h
►
exbase.h
►
except.h
►
file.h
filedoc.h
►
filename.h
►
findrepl.h
►
fixedpnt.h
flatctrl.h
floatfra.h
►
framewin.h
fscroll.h
►
functor.h
►
gadget.h
►
gadgetwi.h
gauge.h
►
gdibase.h
►
gdiobjec.h
►
gdiplus.h
►
geometry.h
►
glyphbtn.h
groupbox.h
►
hlpmanag.h
hotkey.h
imagelst.h
inputdia.h
ipaddres.h
►
layoutco.h
layoutwi.h
►
lclstrng.h
listbox.h
listboxview.h
►
listview.h
►
listviewctrl.h
►
listwind.h
►
mailer.h
►
mci.h
►
mdi.h
►
mdichild.h
►
memcbox.h
►
menu.h
menugadg.h
►
messageb.h
►
metafile.h
modegad.h
►
module.h
monthcal.h
►
msgthred.h
►
notetab.h
►
objstrm.h
►
opensave.h
owlall.h
owlcore.h
►
owlvcl.h
pager.h
►
panespli.h
pch.h
►
picker.h
picklist.h
pictwind.h
►
pointer.h
popupgad.h
posclass.h
preclass.h
preview.h
prevwin.h
►
printdia.h
►
printer.h
profile.h
progressbar.h
►
property.h
►
propsht.h
psview.h
radiobut.h
►
rcntfile.h
►
registry.h
►
resource.h
►
richedit.h
richedpr.h
richedv.h
rolldial.h
►
scrollba.h
►
scroller.h
►
serialze.h
►
shddel.h
►
shellitm.h
►
shelwapi.h
signatur.h
►
slider.h
►
splashwi.h
►
splitter.h
►
static.h
►
statusba.h
►
streambl.h
►
string.h
syslink.h
►
system.h
►
tabbed.h
►
tabctrl.h
►
template.h
►
textgadg.h
►
theme.h
►
thread.h
►
time.h
►
timegadg.h
tinycapt.h
►
toolbox.h
►
tooltip.h
►
transfer.h
►
transferbuffer.h
►
trayicon.h
►
treeviewctrl.h
►
treewind.h
►
uihelper.h
►
uimetric.h
►
updown.h
►
validate.h
►
window.h
►
windowev.h
►
winsock.h
►
wskaddr.h
►
wskerr.h
►
wskhostm.h
►
wskservm.h
►
wsksock.h
►
wsksockd.h
►
wsksockm.h
►
wsyscls.h
►
wsysinc.h
►
source
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
gnuc.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows, OWL NExt
3
// Copyright (c) 1998-1999 by Yura Bidus, All Rights Reserved
4
//
5
// Compiler-specific defines for GNU C/C++. Included only by
6
// defs.h
7
//
8
//----------------------------------------------------------------------------
9
10
#if !defined(OWL_PRIVATE_GNUC_H)
11
#define OWL_PRIVATE_GNUC_H
12
13
#ifdef __CYGWIN__
14
#error only mingw supported now
15
#endif
16
17
//////////////////////////
18
// let STL do some work
19
#undef min
20
#undef max
21
#include <algorithm>
22
using
std::min;
23
using
std::max;
24
#define __MINMAX_DEFINED
//avoid use definition of min max from Borland/others headers
25
26
#include <stddef.h>
27
#include <exception>
28
29
#if !defined(__FLAT__)
30
# define __FLAT__
31
#endif
32
33
// Define library-wide function calling conventions. Must rebuild everything
34
// if changed, and must use appropriate modifier on derived classes.
35
//
36
37
#if !defined(_CCONV)
38
# define _CCONV __cdecl
39
#endif
40
41
42
//
43
// Only enable multi-thread classes when the OS supports them, and/or when the
44
// runtime library support them
45
//
46
#define BI_MULTI_THREAD
47
48
// GNU suport multithreading ???
49
#if defined(__STL_WIN32THREADS)
50
#define BI_MULTI_THREAD_RTL
51
#endif
52
53
//----------------------------------------------------------------------------
54
// Compiler-specific flags.
55
//----------------------------------------------------------------------------
56
// MinGW uses __declspecs, so just turn import/export into those
57
// MSVC uses __declspecs, so just turn import/export into those
58
59
60
//
61
// Specific name of compiler, BI_COMP_xxxx
62
//
63
#define BI_COMP_GNUC
64
#define _RTLENTRY
65
#define _USERENTRY
66
// uses Microsoft RTL under Windows
67
#define _EXPCLASS __declspec(dllimport)
68
#define _EXPDATA(type) type __declspec(dllimport)
69
#define _EXPFUNC(type) type __declspec(dllimport)
70
71
// Debug trap macro
72
#define OWL_BREAK __asm__ ("int3");
73
74
75
//
76
// C++ language features
77
//
78
// When compiling with a compiler that doesn't support these
79
// features directly, remove the // from the appropriate
80
// #define below or define the macro in the build environment.
81
//
82
83
//
84
// Language feature: Description SERVICES header
85
// ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
86
#if __GNUC__ <4
87
# error OWLNext 6.33 and later require version 4 or later of this compiler.
88
#endif
89
90
//#define BI_NO_NEW_CASTS // New style casts CASTABLE.H
91
92
#if !defined(__STL_USE_EXCEPTIONS)
93
# define __STL_USE_EXCEPTIONS
94
#endif
95
96
// change __stl_assert -> OWL alwas GUI application
97
#ifdef __STL_ASSERTIONS
98
#undef __stl_assert
99
# define __stl_assert(expr) CHECK(expr)
100
#endif
101
102
#define _RTTI
// without __rtti keyword //???????????????
103
//#define BI_NOTHUNK // not used chunk
104
//#define BI_NO_LVAL_CASTS // Can cast lvalues
105
//#define BI_VIRTUAL_BUG //??????????????????????????
106
107
//JJH just to get rid of warning in wine's basetsd.h header file
108
//#if defined(WINELIB)
109
//typedef long long __int64;
110
//#else
111
#if !defined(__int64)
112
#define __int64 long long
113
#endif
114
//#endif
115
116
//#define BI_TYPECASTOPERATOR_BUG // problem with type cast operator
117
//
118
// Aligning for OWL
119
//
120
#if !defined BI_OWL_PACKING
121
#define BI_OWL_PACKING 4
// for ??? default packing
122
#endif
123
124
#if defined(__MINGW32__)
125
# include <
owl/private/mingw32.h
>
126
#elif defined(__CYGWIN__)
127
# include <
owl/private/cygwin.h
>
128
#error structured exception handling not yet supported
129
#elif defined(WINELIB)
//JJH
130
# include <
owl/private/winelib.h
>
131
#else
132
#error Unknown GNU Compiler
133
#endif
134
135
#define OWL_OUTPUT_DEBUG_STRING(lpsz) ::OutputDebugString(lpsz)
136
137
//need again to undef min/max (check later private/winelib.h->winsock2.h use)
138
#undef min
139
#undef max
140
141
142
#if !defined(_MAX_PATH)
143
#define _MAX_PATH MAX_PATH
144
#endif
145
146
//C runtime equivalents
147
#define _stricmp strcasecmp
148
#define _strnicmp strncasecmp
149
150
//both _fullpath and _wfullpath are in the msvcrt implementation of Winelib (stdlib.h),
151
//but we prefer a to use only functions of gnu lib
152
#define _fullpath myfullpath
//used in file.cpp, implemented in unix.cpp
153
154
char
*
myfullpath
(
char
*,
const
char
*,
int
);
155
156
157
#endif
// OWL_PRIVATE_GNUC_H
cygwin.h
myfullpath
char * myfullpath(char *, const char *, int)
Definition
unix.cpp:41
mingw32.h
winelib.h
include
owl
private
gnuc.h
Generated by
1.10.0