equal
deleted
inserted
replaced
95 typedef IEC_TIME TIME; |
95 typedef IEC_TIME TIME; |
96 typedef IEC_DATE DATE; |
96 typedef IEC_DATE DATE; |
97 typedef IEC_DT DT; |
97 typedef IEC_DT DT; |
98 typedef IEC_TOD TOD; |
98 typedef IEC_TOD TOD; |
99 |
99 |
100 #define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t2.tv_nsec - t1.tv_nsec : t1.tv_sec - t2.tv_sec) |
100 #define __TIME_CMP(t1, t2) (t2.tv_sec == t1.tv_sec ? t1.tv_nsec - t2.tv_nsec : t1.tv_sec - t2.tv_sec) |
101 extern TIME __CURRENT_TIME; |
101 extern TIME __CURRENT_TIME; |
102 |
102 |
103 typedef IEC_STRING STRING; |
103 typedef IEC_STRING STRING; |
104 |
104 |
105 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len) |
105 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len) |