__block size_t longest = 0;
[_commands enumerateKeysAndObjectsUsingBlock:
- ^(OFString *key, id<JubCLICommand> command, BOOL *stop) {
+ ^(OFString *key, id<JubCLICommand> command, bool *stop) {
size_t length = [command.command length] +
(command.params == nil ? 0 :
(1 + [command.params length]));
return [(id)value hash];
}
-static BOOL equal(void *value1, void *value2)
+static bool equal(void *value1, void *value2)
{
return [(id)value1 isEqual: (id)value2];
}
#undef NUM
}
-static BOOL default_equal(void *value1, void *value2)
+static bool default_equal(void *value1, void *value2)
{
return (value1 == value2);
}
[OFMutableString stringWithString: @"<b>Resources:</b>"];
[allPresences enumerateKeysAndObjectsUsingBlock:
- ^(OFString *resource, XMPPPresence *pres, BOOL *stop) {
+ ^(OFString *resource, XMPPPresence *pres, bool *stop) {
[tooltip appendString: @"\n"];
[tooltip appendString: resource];
if ([pres.type isEqual: @"available"]) {