Differences From Artifact [a6710fd48b]:
- File
src/runtime/protocol.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 1982) [annotate] [blame] [check-ins using]
To Artifact [b64c537258]:
- File src/runtime/protocol.m — part of check-in [8c7e612885] at 2017-05-14 02:15:45 on branch trunk — runtime: Add nullability annotations (user: js, size: 2016) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | return false; } bool class_conformsToProtocol(Class cls, Protocol *p) { struct objc_category **cats; for (struct objc_protocol_list *pl = cls->protocols; pl != NULL; pl = pl->next) for (long i = 0; i < pl->count; i++) if (protocol_conformsToProtocol(pl->list[i], p)) return true; | > > > | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | return false; } bool class_conformsToProtocol(Class cls, Protocol *p) { struct objc_category **cats; if (cls == Nil) return false; for (struct objc_protocol_list *pl = cls->protocols; pl != NULL; pl = pl->next) for (long i = 0; i < pl->count; i++) if (protocol_conformsToProtocol(pl->list[i], p)) return true; |
︙ | ︙ |