45 #if defined(WIN32) && defined(_MSC_VER) 46 #pragma warning (disable : 4231) 66 #ifndef FOXDLL_EXPORTS 67 #define FXEXTERN extern 78 #define COMPRESS_MAX 9 79 #define COMPRESS_NORMAL 6 80 #define COMPRESS_FAST 1 81 #define COMPRESS_NONE 0 86 # define INFINITE (-1) 92 #define FXNEWLINE "\r\n" 95 #define FXNEWLINE "\r" 98 #define FXNEWLINE "\n" 103 #define MKUSHORT(l,h) ((((FX::FXuchar)(l))&0xff) | (((FX::FXuchar)(h))<<8)) 120 #define FXDeclare(Class) \ 122 #define FXDeclareAbstract(Class) \ 123 FXDECLARE_ABSTRACT(Class) 124 #define FXDefMap(Class) \ 125 FXDEFMAP(Class) Class##Map[] 126 #define FXImplementAbstract(Class,Parent) \ 127 FXIMPLEMENT_ABSTRACT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map)) 128 #define FXImplement(Class,Parent) \ 129 FXIMPLEMENT(Class,Parent,Class##Map,ARRAYNUMBER(Class##Map)) 130 #define FXFuncDecl(Func) \ 131 long on##Func (FXObject*,FXSelector,void*) 132 #define FXFuncImpl(Class,Func,tgt,sel,ptr) \ 133 long Class::on##Func (FXOject *tgt,FXSelector sel, void *ptr) 134 #define FXMapTypes(Class,FromType,ToType,Func) \ 135 FXMAPTYPES(SEL_##FromType,SEL_##ToType,Class::on##Func) 136 #define FXMapType(Class,SelType,Func) \ 137 FXMAPTYPE(SEL_##SelType,Class::on##Func) 138 #define FXMapFuncs(Class,SelType,FromId,ToId,Func) \ 139 FXMAPFUNCS(SEL_##SelType,Class::ID_##FromId,Class::ID_##ToId,Class::on#Func) 140 #define FXMapFunc(Class,SelType,Id,Func) \ 141 FXMAPFUNC(SEL_##SelType,Class::ID_##Id,Class::on##Func) 145 #define FXSEND(tgt,sel,msg,ptr) \ 146 (tgt->handle(this,FXSEL(sel,msg),ptr) 147 #define FXROUTE(src,tgt,sel,msg,ptr) \ 148 (tgt->handle(src,FXSEL(sel,msg),ptr) 153 # define FXCTOR() fxtrace (100,"%s::%s %p\n",getClassName(),getClassName(),this) 154 # define FXMETHOD(methodname) fxtrace (100,"%s::%s %p\n",getClassName(),#methodname,this) 155 # define FXDTOR() fxtrace (100,"%s::~%s %p\n",getClassName(),getClassName(),this) 158 # define FXMETHOD(methodname) 197 #ifndef INVALID_HANDLE 199 # define INVALID_HANDLE INVALID_HANDLE_VALUE 201 # define INVALID_HANDLE -1 206 # define VALID_RESULT 0 334 static void get_time_now(
unsigned long* abs_sec,
unsigned long* abs_nsec);
335 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)