lib/iec_std_lib.h
changeset 378 7f2e120c7352
parent 375 7a11f9e9e703
child 379 7dc97c825bb8
equal deleted inserted replaced
377:60b012b7793f 378:7f2e120c7352
  1509 __extrem_(MAX__##TYPENAME##__##TYPENAME, TYPENAME, __time_cmp(op1, tmp) < 0) /* Overloaded function */
  1509 __extrem_(MAX__##TYPENAME##__##TYPENAME, TYPENAME, __time_cmp(op1, tmp) < 0) /* Overloaded function */
  1510 __ANY_DATE(__iec_)
  1510 __ANY_DATE(__iec_)
  1511 __iec_(TIME)
  1511 __iec_(TIME)
  1512 #undef __iec_
  1512 #undef __iec_
  1513 
  1513 
       
  1514 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len)
       
  1515 
  1514 /* Max for string data types */	
  1516 /* Max for string data types */	
  1515 __extrem_(MAX_STRING, STRING, __STR_CMP(op1,tmp) < 0) /* The explicitly typed standard functions */
  1517 __extrem_(MAX_STRING, STRING, __STR_CMP(op1,tmp) < 0) /* The explicitly typed standard functions */
  1516 __extrem_(MAX__STRING__STRING, STRING, __STR_CMP(op1,tmp) < 0) /* Overloaded function */
  1518 __extrem_(MAX__STRING__STRING, STRING, __STR_CMP(op1,tmp) < 0) /* Overloaded function */
  1517 
  1519 
  1518     /**************/
  1520     /**************/
  1827 /* We do not delcare explcitly typed versions of the functions in table 29.
  1829 /* We do not delcare explcitly typed versions of the functions in table 29.
  1828  * See note above regarding explicitly typed functions for more details.
  1830  * See note above regarding explicitly typed functions for more details.
  1829  */
  1831  */
  1830  
  1832  
  1831 
  1833 
  1832 #define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len)
       
  1833 
  1834 
  1834 
  1835 
  1835     /***************/
  1836     /***************/
  1836     /*     LEN     */
  1837     /*     LEN     */
  1837     /***************/
  1838     /***************/