ObjFW  Check-in [9b5445fd7e]

Overview
Comment:runtime/protocol.m: Remove __gnu_inline__

Instead, let the compiler decide whether to inline these.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9b5445fd7ec811937fb609d740b03491d7eff9c98d6d133dd2b830e7ebd5c96c
User & Date: js on 2015-05-05 10:26:51
Other Links: manifest | tags
Context
2015-05-05
20:16
utils/ofhttp: Only update BPS once per second check-in: 2743414e6e user: js tags: trunk
10:26
runtime/protocol.m: Remove __gnu_inline__ check-in: 9b5445fd7e user: js tags: trunk
2015-05-04
23:19
Test all OFKernelEventObserver implementations check-in: 6430ae3309 user: js tags: trunk
Changes

Modified src/runtime/protocol.m from [0891ba3248] to [dd73b09ef7].

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)







|





|







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

const char*
protocol_getName(Protocol *p)
{
	return p->name;
}

bool
protocol_isEqual(Protocol *a, Protocol *b)
{
	return (strcmp(protocol_getName(a), protocol_getName(b)) == 0);
}

bool
protocol_conformsToProtocol(Protocol *a, Protocol *b)