23 #ifndef __EAI_C_HEADERS__
24 #define __EAI_C_HEADERS__
27 #ifndef WIN32_LEAN_AND_MEAN
28 #define WIN32_LEAN_AND_MEAN
30 #define strdup _strdup
34 #define snprintf _snprintf
36 #define STRTOK_S strtok_s
38 #include <sys/socket.h>
39 #include <netinet/in.h>
41 #define STRTOK_S strtok_r
45 typedef size_t indexT;
46 #define ARR_SIZE(arr) (int)(sizeof(arr)/sizeof((arr)[0]))
48 #include "EAIHeaders.h"
49 #include "SCKHeaders.h"
69 #include "GeneratedHeaders.h"
71 #define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
72 #define bcopy(b1,b2,len) (memmove((b2), (b1), (len)), (void) 0)
75 extern const char *FIELDTYPES[];
76 extern const indexT FIELDTYPES_COUNT;
80 #define SCANTONUMBER(value) while ((*value==' ') || (*value==',')) value++;
81 #define SCANTOSTRING(value) while ((*value==' ') || (*value==',')) value++;
82 #define SCANPASTFLOATNUMBER(value) while (isdigit(*value) \
83 || (*value == '.') || \
84 (*value == 'E') || (*value == 'e') || (*value == '-')) value++;
85 #define SCANPASTINTNUMBER(value) if (isdigit(*value) || (*value == '-')) value++; \
86 while (isdigit(*value) || \
87 (*value == 'x') || (*value == 'X') ||\
88 ((*value >='a') && (*value <='f')) || \
89 ((*value >='A') && (*value <='F')) || \
90 (*value == '-')) value++;
104 struct SFColor {
float c[3]; };
112 struct SFVec2f {
float c[2]; };
116 struct SFVec3d {
double c[3]; };
128 struct SFVec2d {
double c[2]; };
130 struct SFVec4f {
float c[4]; };
132 struct SFVec4d {
double c[4]; };
145 #define FREE_IF_NZ(a) if(a) {free(a); a = 0;}