ObjFW  Diff

Differences From Artifact [d9f2f102aa]:

  • File src/OFConstString.h — part of check-in [cbdd534337] at 2009-04-12 14:51:00 on branch trunk — Get rid of the dependency on Object.

    This allows libobjfw to run on ObjC2-only runtimes like the one on the
    iPhone. However, it's still relying on objc_msgSendv for plugins, which
    is unavailable in ObjC2-only runtimes, thus OFPlugins are unavailable
    on the iPhone until I write a replacement for objc_msgSendv. (user: js, size: 913) [annotate] [blame] [check-ins using]

To Artifact [b313df5022]:


18
19
20
21
22
23
24
25

26






27
28
29
30
31
32
33
#endif

/**
 * A class for storing static strings using the @"" literal.
 */
@interface OFConstString: OFObject
{
	char   *string;

	size_t length;






}

/**
 * \return The OFString as a C string
 */
- (const char*)cString;








|
>
|
>
>
>
>
>
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#endif

/**
 * A class for storing static strings using the @"" literal.
 */
@interface OFConstString: OFObject
{
	char	     *string;
#ifdef __objc_INCLUDE_GNU
	unsigned int length;
#else
	int	     length;
#if __LP64__
	int	     _unused;
#endif
#endif
}

/**
 * \return The OFString as a C string
 */
- (const char*)cString;