51 #if defined(WIN32) && defined(_MSC_VER)
52 #pragma warning (disable : 4231)
72 #ifndef FOXDLL_EXPORTS
73 #define FXEXTERN extern
84 #define COMPRESS_MAX 9
85 #define COMPRESS_NORMAL 6
86 #define COMPRESS_FAST 1
87 #define COMPRESS_NONE 0
92 # define INFINITE (-1)
98 #define FXNEWLINE "\r\n"
101 #define FXNEWLINE "\r"
104 #define FXNEWLINE "\n"
109 #define MKUSHORT(l,h) ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8))
126 #define FXDeclare(Class) \
128 #define FXDeclareAbstract(Class) \
129 FXDECLARE_ABSTRACT(Class)
130 #define FXDefMap(Class) \
131 FXDEFMAP(Class) Class##Map[]
132 #define FXImplementAbstract(Class,Parent) \
133 FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
134 #define FXImplement(Class,Parent) \
135 FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
136 #define FXFuncDecl(Func) \
137 long on##Func (FXObject*,FXSelector,void*)
138 #define FXFuncImpl(Class,Func,tgt,sel,ptr) \
139 long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr)
140 #define FXMapTypes(Class,FromType,ToType,Func) \
141 FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func)
142 #define FXMapType(Class,SelType,Func) \
143 FXMAPTYPE(SEL_##SelType,Class::on##Func)
144 #define FXMapFuncs(Class,SelType,FromId,ToId,Func) \
145 FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func)
146 #define FXMapFunc(Class,SelType,Id,Func) \
147 FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func)
151 #define FXSEND(tgt,sel,msg,ptr) \
152 (tgt->handle(this,FXSEL(sel,msg),ptr)
153 #define FXROUTE(src,tgt,sel,msg,ptr) \
154 (tgt->handle(src,FXSEL(sel,msg),ptr)
159 # define FXCTOR() fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this)
160 # define FXMETHOD(methodname) fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this)
161 # define FXDTOR() fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this)
164 # define FXMETHOD(methodname)
203 #ifndef INVALID_HANDLE
205 # define INVALID_HANDLE INVALID_HANDLE_VALUE
207 # define INVALID_HANDLE -1
212 # define VALID_RESULT 0
340 static void get_time_now(
unsigned long* abs_sec,
unsigned long* abs_nsec);
341 static DWORD get_timeout(
unsigned long secs,
unsigned long nsecs, DWORD default_to);
FXInputHandle * FXThreadEventHandle
FXSocketType
Socket types.
void convert_timeval(struct timeval *tv, FXuint ms)
time conversion routines
FXSocketFamily
Socket families.
FXint FXIOState
IO state definitions.
FXAPI const FXuchar fxexversion[3]
Version number that the library version is compiled with.
FXint FXIOStatus
IO status definitions.
void convert_timespec(struct timespec *ts, FXuint ms)