Line 178... |
Line 178... |
(DllFunc)IPClose,
|
(DllFunc)IPClose,
|
(DllFunc)IPPrintf,
|
(DllFunc)IPPrintf,
|
(DllFunc)IPResolve,
|
(DllFunc)IPResolve,
|
(DllFunc)IPAddressSelf,
|
(DllFunc)IPAddressSelf,
|
(DllFunc)IPNameValue,
|
(DllFunc)IPNameValue,
|
|
(DllFunc)FP_Cmp,
|
|
DllDummy,
|
|
DllDummy,
|
|
DllDummy,
|
|
DllDummy,
|
|
DllDummy,
|
|
DllDummy,
|
DllDummy,
|
DllDummy,
|
DllDummy
|
DllDummy
|
};
|
};
|
|
|
#endif //DLL_SETUP
|
#endif //DLL_SETUP
|
Line 302... |
Line 309... |
ENUM_IPClose,
|
ENUM_IPClose,
|
ENUM_IPPrintf,
|
ENUM_IPPrintf,
|
ENUM_IPResolve,
|
ENUM_IPResolve,
|
ENUM_IPAddressSelf,
|
ENUM_IPAddressSelf,
|
ENUM_IPNameValue,
|
ENUM_IPNameValue,
|
|
ENUM_FP_Cmp,
|
ENUM_USER0,
|
ENUM_USER0,
|
ENUM_USER1,
|
ENUM_USER1,
|
|
ENUM_USER2,
|
|
ENUM_USER3,
|
|
ENUM_USER4,
|
|
ENUM_USER5,
|
|
ENUM_USER6,
|
|
ENUM_USER7,
|
ARGV_SOCKET = -2
|
ARGV_SOCKET = -2
|
};
|
};
|
|
|
extern const DllFunc *DllF;
|
extern const DllFunc *DllF;
|
|
|
Line 439... |
Line 453... |
#define IPClose DllF[ENUM_IPClose]
|
#define IPClose DllF[ENUM_IPClose]
|
#define IPPrintf (int)DllF[ENUM_IPPrintf]
|
#define IPPrintf (int)DllF[ENUM_IPPrintf]
|
#define IPResolve DllF[ENUM_IPResolve]
|
#define IPResolve DllF[ENUM_IPResolve]
|
#define IPAddressSelf (int)DllF[ENUM_IPAddressSelf]
|
#define IPAddressSelf (int)DllF[ENUM_IPAddressSelf]
|
#define IPNameValue DllF[ENUM_IPNameValue]
|
#define IPNameValue DllF[ENUM_IPNameValue]
|
|
#define UserFunc0 DllF[ENUM_USER0]
|
|
#define UserFunc1 DllF[ENUM_USER1]
|
#define time(P) OS_ThreadTime()
|
#define time(P) OS_ThreadTime()
|
|
|
#endif //DLL_CALL
|
#endif //DLL_CALL
|
|
|
|
|
Line 475... |
Line 491... |
|
|
#ifdef INCLUDE_MATH
|
#ifdef INCLUDE_MATH
|
typedef float (*DllFloat)(float);
|
typedef float (*DllFloat)(float);
|
typedef float (*DllFloat2)(float,float);
|
typedef float (*DllFloat2)(float,float);
|
typedef long (*DllFloat3)(float);
|
typedef long (*DllFloat3)(float);
|
|
typedef int (*DllFloat4)(float,float);
|
|
typedef float (*DllFloat5)(long a);
|
float __negsf2(float a) {return ((DllFloat)DllF[ENUM_NEGSF2])(a);}
|
float __negsf2(float a) {return ((DllFloat)DllF[ENUM_NEGSF2])(a);}
|
float __addsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_ADDSF3])(a,b);}
|
float __addsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_ADDSF3])(a,b);}
|
float __subsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_SUBSF3])(a,b);}
|
float __subsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_SUBSF3])(a,b);}
|
float __mulsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_MULSF3])(a,b);}
|
float __mulsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_MULSF3])(a,b);}
|
float __divsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_DIVSF3])(a,b);}
|
float __divsf3(float a,float b) {return ((DllFloat2)DllF[ENUM_DIVSF3])(a,b);}
|
long __fixsfsi(float a) {return ((DllFloat3)DllF[ENUM_FIXSFSI])(a);}
|
long __fixsfsi(float a) {return ((DllFloat3)DllF[ENUM_FIXSFSI])(a);}
|
float __floatsisf(long a) {return ((DllFloat)DllF[ENUM_FLOATSISF])(a);}
|
float __floatsisf(long a) {return ((DllFloat5)DllF[ENUM_FLOATSISF])(a);}
|
|
int __ltsf2(float a,float b) {return ((DllFloat4)DllF[ENUM_FP_Cmp])(a,b);}
|
|
int __lesf2(float a,float b) {return ((DllFloat4)DllF[ENUM_FP_Cmp])(a,b);}
|
|
int __gtsf2(float a,float b) {return ((DllFloat4)DllF[ENUM_FP_Cmp])(a,b);}
|
|
int __gesf2(float a,float b) {return ((DllFloat4)DllF[ENUM_FP_Cmp])(a,b);}
|
#endif
|
#endif
|
|
|
#endif //DLL_ENTRY
|
#endif //DLL_ENTRY
|
|
|
|
|
Line 603... |
Line 625... |
"IPClose",
|
"IPClose",
|
"IPPrintf",
|
"IPPrintf",
|
"IPResolve",
|
"IPResolve",
|
"IPAddressSelf",
|
"IPAddressSelf",
|
"IPNameValue",
|
"IPNameValue",
|
|
"FP_Cmp",
|
NULL
|
NULL
|
};
|
};
|
#endif //DLL_STRINGS
|
#endif //DLL_STRINGS
|
|
|
#endif //__DLL_H__
|
#endif //__DLL_H__
|