Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Add __attribute__((gnu_inline)) for GCC < 4.3 |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
7a1e2de2d4327f2d59f96ac7177856fb |
| User & Date: | js 2014-02-23 17:54:53.000 |
Context
|
2014-02-23
| ||
| 18:51 | Add missing #define _POSIX_C_SOURCE 199309L check-in: bfc762c6d8 user: js tags: trunk | |
| 17:54 | Add __attribute__((gnu_inline)) for GCC < 4.3 check-in: 7a1e2de2d4 user: js tags: trunk | |
|
2014-02-22
| ||
| 01:14 | Rename AMD64 to x86_64 check-in: 05f4b0a4f0 user: js tags: trunk | |
Changes
Changes to src/runtime/class.m.
| ︙ | ︙ | |||
74 75 76 77 78 79 80 | for (ml = cls->methodlist; ml != NULL; ml = ml->next) for (i = 0; i < ml->count; i++) objc_register_selector( (struct objc_abi_selector*)&ml->methods[i]); } | | | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
for (ml = cls->methodlist; ml != NULL; ml = ml->next)
for (i = 0; i < ml->count; i++)
objc_register_selector(
(struct objc_abi_selector*)&ml->methods[i]);
}
inline Class __attribute__((gnu_inline))
objc_classname_to_class(const char *name, bool cache)
{
Class c;
if (classes == NULL)
return Nil;
|
| ︙ | ︙ |
Changes to src/runtime/protocol.m.
| ︙ | ︙ | |||
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));
}
bool
protocol_conformsToProtocol(Protocol *a, Protocol *b)
|
| ︙ | ︙ |