ObjFW  Check-in [9fce2c470e]

Overview
Comment:Add a missing include and fix a typo.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9fce2c470ec2260e3eca155738b2f1afae6abdc2d64cea2ba0c29d990af46320
User & Date: js on 2012-10-14 19:22:55
Other Links: manifest | tags
Context
2012-10-15
11:08
Fix some forgotten renames. check-in: 06251136e5 user: js tags: trunk
2012-10-14
19:22
Add a missing include and fix a typo. check-in: 9fce2c470e user: js tags: trunk
10:36
More integer overflow checks. check-in: 53af033b0e user: js tags: trunk
Changes

Modified src/OFProcess.m from [3ceef225bf] to [0d39282550].

24
25
26
27
28
29
30

31
32
33
34
35
36
37
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38







+







#endif

#import "OFProcess.h"
#import "OFString.h"
#import "OFArray.h"

#import "OFInitializationFailedException.h"
#import "OFNotImplementedException.h"
#import "OFReadFailedException.h"
#import "OFWriteFailedException.h"

#ifdef _WIN32
# include <windows.h>
#endif

300
301
302
303
304
305
306
307

308
309
310
311
312
313
314
301
302
303
304
305
306
307

308
309
310
311
312
313
314
315







-
+







	return readPipe[0];
#else
	@throw [OFNotImplementedException exceptionWithClass: [self class]
						    selector: _cmd];
#endif
}

- (int)fileDescriptorForWRiting
- (int)fileDescriptorForWriting
{
#ifndef _WIN32
	return writePipe[1];
#else
	@throw [OFNotImplementedException exceptionWithClass: [self class]
						    selector: _cmd];
#endif

Modified src/runtime/property.m from [0d8c0c46ef] to [0c24ed765c].

104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
104
105
106
107
108
109
110




111
112
113
114
115
116
117







-
-
-
-







	id old = *ptr;

	switch (copy) {
	case 0:
		*ptr = [value retain];
		break;
	case 2:
		/*
		 * Apple uses this to indicate that the copy should be mutable.
		 * Please hit them for abusing a poor BOOL!
		 */
		*ptr = [value mutableCopy];
		break;
	default:
		*ptr = [value copy];
	}

	[old release];