ObjFW  Check-in [617ca244c5]

Overview
Comment:Remove redundant method.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 617ca244c5b9a1b52c52e5fc6ce527553dc3b6b4df8bc9bcddbbb47626a6e315
User & Date: js on 2008-12-26 21:34:03
Other Links: manifest | tags
Context
2008-12-30
14:42
Add OFNumber. check-in: 555f28985f user: js tags: trunk
2008-12-26
21:34
Remove redundant method. check-in: 617ca244c5 user: js tags: trunk
2008-12-24
19:12
Fix imports for glibc. check-in: fca9e1997f user: js tags: trunk
Changes

Modified src/OFString.h from [e5252f091b] to [3e60c38f22].

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@interface OFString: OFObject
{
	char   *string;
	size_t length;
	BOOL   is_utf8;
}

/**
 * Creates a new OFString.
 *
 * \return An initialized OFString
 */
+ new;

/**
 * Creates a new OFString from a C string.
 *
 * \param str A C string to initialize the OFString with
 * \return A new OFString
 */
+ newFromCString: (const char*)str;







<
<
<
<
<
<
<







19
20
21
22
23
24
25







26
27
28
29
30
31
32
@interface OFString: OFObject
{
	char   *string;
	size_t length;
	BOOL   is_utf8;
}








/**
 * Creates a new OFString from a C string.
 *
 * \param str A C string to initialize the OFString with
 * \return A new OFString
 */
+ newFromCString: (const char*)str;

Modified src/OFString.m from [5ddb402b32] to [384f44e40d].

95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

	madvise((void*)str, len, MADV_NORMAL);

	return (utf8 ? 1 : 0);
}

@implementation OFString
+ new
{
	return [[self alloc] init];
}

+ newFromCString: (const char*)str
{
	return [[self alloc] initFromCString: str];
}

+ newFromFormatCString: (const char*)fmt, ...
{







<
<
<
<
<







95
96
97
98
99
100
101





102
103
104
105
106
107
108

	madvise((void*)str, len, MADV_NORMAL);

	return (utf8 ? 1 : 0);
}

@implementation OFString





+ newFromCString: (const char*)str
{
	return [[self alloc] initFromCString: str];
}

+ newFromFormatCString: (const char*)fmt, ...
{