mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-09 13:35:26 +00:00
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:
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user