equal
deleted
inserted
replaced
42 */ |
42 */ |
43 #include "iec_types_all.h" |
43 #include "iec_types_all.h" |
44 |
44 |
45 #define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t1.tv_nsec - t2.tv_nsec : t1.tv_sec - t2.tv_sec) |
45 #define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t1.tv_nsec - t2.tv_nsec : t1.tv_sec - t2.tv_sec) |
46 extern TIME __CURRENT_TIME; |
46 extern TIME __CURRENT_TIME; |
|
47 extern BOOL __DEBUG; |
47 |
48 |
48 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len) |
49 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len) |
49 |
50 |
50 /* TODO |
51 /* TODO |
51 typedef struct { |
52 typedef struct { |