示例#1
0
文件: IoDate.c 项目: bomma/io
int IoDate_compare(IoDate *self, IoDate *date)
{
	if (ISDATE(date)) return Date_compare(DATA(self), DATA(date));
	return IoObject_defaultCompare(self, date);
}
示例#2
0
文件: date.hpp 项目: jhartz/present
inline short
Date::compare(const Date & lhs, const Date & rhs)
{
    return Date_compare(&lhs, &rhs);
}