Monotone-Parent: 4e643e3e8f08c6cdd2abe4483bdb2cdb7dc15066

Monotone-Revision: 24cd0f4a54d77d53f8c9e4dc117f32e9a5c42d72

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-07T16:19:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-07 16:19:02 +00:00
parent cd510f7473
commit 36a5c192f0
2 changed files with 21 additions and 0 deletions
+18
View File
@@ -106,4 +106,22 @@
@end
#define IS_EQUAL(a,b,sel) \
_iCalSafeCompareObjects (a, b, @selector(sel))
static __inline__ BOOL _iCalSafeCompareObjects(id a, id b, SEL comparator)
{
id va = a;
id vb = b;
BOOL (*compm)(id, SEL, id);
if((!va && vb) || (va && !vb))
return NO;
else if(va == vb)
return YES;
compm = (BOOL (*)( id, SEL, id)) [va methodForSelector: comparator];
return compm(va, comparator, vb);
}
#endif /* CARDELEMENT_H */
+3
View File
@@ -1,5 +1,8 @@
2007-06-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* CardElement.h: moved IS_EQUAL macro from removed module
"common.h".
* CardGroup+iCal.[hm]: removed category module.
2007-04-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>