48 #if defined(WIN32) && defined(_MSC_VER)
49 #pragma warning (disable : 4231)
69 #ifndef FOXDLL_EXPORTS
70 #define FXEXTERN extern
81 #define COMPRESS_MAX 9
82 #define COMPRESS_NORMAL 6
83 #define COMPRESS_FAST 1
84 #define COMPRESS_NONE 0
89 # define INFINITE (-1)
95 #define FXNEWLINE "\r\n"
98 #define FXNEWLINE "\r"
101 #define FXNEWLINE "\n"
106 #define MKUSHORT(l,h) ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8))
123 #define FXDeclare(Class) \
125 #define FXDeclareAbstract(Class) \
126 FXDECLARE_ABSTRACT(Class)
127 #define FXDefMap(Class) \
128 FXDEFMAP(Class) Class##Map[]
129 #define FXImplementAbstract(Class,Parent) \
130 FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
131 #define FXImplement(Class,Parent) \
132 FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
133 #define FXFuncDecl(Func) \
134 long on##Func (FXObject*,FXSelector,void*)
135 #define FXFuncImpl(Class,Func,tgt,sel,ptr) \
136 long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr)
137 #define FXMapTypes(Class,FromType,ToType,Func) \
138 FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func)
139 #define FXMapType(Class,SelType,Func) \
140 FXMAPTYPE(SEL_##SelType,Class::on##Func)
141 #define FXMapFuncs(Class,SelType,FromId,ToId,Func) \
142 FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func)
143 #define FXMapFunc(Class,SelType,Id,Func) \
144 FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func)
148 #define FXSEND(tgt,sel,msg,ptr) \
149 (tgt->handle(this,FXSEL(sel,msg),ptr)
150 #define FXROUTE(src,tgt,sel,msg,ptr) \
151 (tgt->handle(src,FXSEL(sel,msg),ptr)
156 # define FXCTOR() fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this)
157 # define FXMETHOD(methodname) fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this)
158 # define FXDTOR() fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this)
161 # define FXMETHOD(methodname)
200 #ifndef INVALID_HANDLE
202 # define INVALID_HANDLE INVALID_HANDLE_VALUE
204 # define INVALID_HANDLE -1
209 # define VALID_RESULT 0
337 static void get_time_now(
unsigned long* abs_sec,
unsigned long* abs_nsec);
338 static DWORD get_timeout(
unsigned long secs,
unsigned long nsecs, DWORD default_to);
void convert_timespec(struct timespec *ts, FXuint ms)
FXAPI const FXuchar fxexversion[3]
Version number that the library version is compiled with.
void convert_timeval(struct timeval *tv, FXuint ms)
time conversion routines
FXInputHandle * FXThreadEventHandle
FXint FXIOStatus
IO status definitions.
FXint FXIOState
IO state definitions.
FXSocketType
Socket types.
FXSocketFamily
Socket families.
@ FXSocketFamilyAutomatic