ObjFW  Check-in [8c23ddc0a0]

Overview
Comment:Work around a stupid gcc bug.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8c23ddc0a0a7a68d433de7c9f0685ccb56ac9c89afacb407fbedf231e0654ca5
User & Date: js on 2010-06-13 16:50:30
Other Links: manifest | tags
Context
2010-06-13
17:42
Fix initialization of mutations in OF{Array,Dictionary}Enumerator. check-in: e0d581d524 user: js tags: trunk
16:50
Work around a stupid gcc bug. check-in: 8c23ddc0a0 user: js tags: trunk
15:40
Add +[elementWithText:] and +[elementWithComment:] to OFXMLElement. check-in: 29384131f7 user: js tags: trunk
Changes

Modified src/OFArray.m from [af5a656bb6] to [54c48d5def].

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

- initWithCArray: (OFObject**)objs
{
	id *obj;
	size_t count;

	self = [self init];
	
	count = 0;

	for (obj = objs; *obj != nil; obj++) {
		[*obj retain];
		count++;
	}








|







126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

- initWithCArray: (OFObject**)objs
{
	id *obj;
	size_t count;

	self = [self init];

	count = 0;

	for (obj = objs; *obj != nil; obj++) {
		[*obj retain];
		count++;
	}

Modified src/OFXMLElement.m from [33f24ec239] to [1d13a2237c].

187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
	/* Start of tag */
	str_c[i++] = '<';

	if ((namespace == nil && def_ns != nil) ||
	    (namespace != nil && def_ns == nil) ||
	    (namespace != nil && ![namespace isEqual: def_ns])) {
		if ((prefix = [all_namespaces objectForKey:
		    (namespace != nil ? namespace : @"")]) == nil)
			@throw [OFUnboundNamespaceException
			    newWithClass: isa
			       namespace: namespace];

		len += [prefix cStringLength] + 1;
		@try {
			str_c = [self resizeMemory: str_c







|







187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
	/* Start of tag */
	str_c[i++] = '<';

	if ((namespace == nil && def_ns != nil) ||
	    (namespace != nil && def_ns == nil) ||
	    (namespace != nil && ![namespace isEqual: def_ns])) {
		if ((prefix = [all_namespaces objectForKey:
		    (namespace != nil ? namespace : (OFString*)@"")]) == nil)
			@throw [OFUnboundNamespaceException
			    newWithClass: isa
			       namespace: namespace];

		len += [prefix cStringLength] + 1;
		@try {
			str_c = [self resizeMemory: str_c