Differences From Artifact [f526015ede]:
- File
src/runtime/protocol.m
— part of check-in
[9da9b2b64c]
at
2014-04-14 00:45:58
on branch trunk
— Coding style
No functional change intended. (user: js, size: 2006) [annotate] [blame] [check-ins using]
To Artifact [c39410b65b]:
- File src/runtime/protocol.m — part of check-in [e35b10115e] at 2014-05-14 20:28:11 on branch trunk — Always use __foo__ instead of foo for attributes (user: js, size: 2014) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
20 21 22 23 24 25 26 | #import "runtime.h" #import "runtime-private.h" @implementation Protocol @end | | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #import "runtime.h" #import "runtime-private.h" @implementation Protocol @end inline const char* __attribute__((__gnu_inline__)) protocol_getName(Protocol *p) { return p->name; } inline bool __attribute__((__gnu_inline__)) protocol_isEqual(Protocol *a, Protocol *b) { return (strcmp(protocol_getName(a), protocol_getName(b)) == 0); } bool protocol_conformsToProtocol(Protocol *a, Protocol *b) |
︙ | ︙ |