52 #if defined(WIN32) && defined(_MSC_VER)
53 #pragma warning (disable : 4231)
73 #ifndef FOXDLL_EXPORTS
74 #define FXEXTERN extern
85 #define COMPRESS_MAX 9
86 #define COMPRESS_NORMAL 6
87 #define COMPRESS_FAST 1
88 #define COMPRESS_NONE 0
93 # define INFINITE (-1)
99 #define FXNEWLINE "\r\n"
102 #define FXNEWLINE "\r"
105 #define FXNEWLINE "\n"
110 #define MKUSHORT(l,h) ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8))
127 #define FXDeclare(Class) \
129 #define FXDeclareAbstract(Class) \
130 FXDECLARE_ABSTRACT(Class)
131 #define FXDefMap(Class) \
132 FXDEFMAP(Class) Class##Map[]
133 #define FXImplementAbstract(Class,Parent) \
134 FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
135 #define FXImplement(Class,Parent) \
136 FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map))
137 #define FXFuncDecl(Func) \
138 long on##Func (FXObject*,FXSelector,void*)
139 #define FXFuncImpl(Class,Func,tgt,sel,ptr) \
140 long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr)
141 #define FXMapTypes(Class,FromType,ToType,Func) \
142 FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func)
143 #define FXMapType(Class,SelType,Func) \
144 FXMAPTYPE(SEL_##SelType,Class::on##Func)
145 #define FXMapFuncs(Class,SelType,FromId,ToId,Func) \
146 FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func)
147 #define FXMapFunc(Class,SelType,Id,Func) \
148 FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func)
152 #define FXSEND(tgt,sel,msg,ptr) \
153 (tgt->handle(this,FXSEL(sel,msg),ptr)
154 #define FXROUTE(src,tgt,sel,msg,ptr) \
155 (tgt->handle(src,FXSEL(sel,msg),ptr)
160 # define FXCTOR() fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this)
161 # define FXMETHOD(methodname) fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this)
162 # define FXDTOR() fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this)
165 # define FXMETHOD(methodname)
204 #ifndef INVALID_HANDLE
206 # define INVALID_HANDLE INVALID_HANDLE_VALUE
208 # define INVALID_HANDLE -1
213 # define VALID_RESULT 0
341 static void get_time_now(
unsigned long* abs_sec,
unsigned long* abs_nsec);
342 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)