ObjFW  Check-in [4090b00720]

Overview
Comment:Fix 3 typos introduced by style changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4090b0072026466e50fed71b8b3fc2ef037c63ffd1643803b18dcd2d2dec3f6c
User & Date: js on 2011-05-29 21:46:48
Other Links: manifest | tags
Context
2011-05-29
21:47
Inline of_condition_* on Win32 as well to prevent warnings. check-in: a1c5b19c7c user: js tags: trunk
21:46
Fix 3 typos introduced by style changes. check-in: 4090b00720 user: js tags: trunk
21:45
Properly check for thread-safe getaddrinfo if it's unknown. check-in: f1bea237ab user: js tags: trunk
Changes

Modified src/OFDate.m from [1c6620e225] to [e2944cd61c].

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
									  \
	if (seconds != seconds_)					  \
		@throw [OFOutOfRangeException newWithClass: isa];	  \
									  \
	[mutex lock];							  \
									  \
	@try {								  \
		if ((tm = localtime(&sec_)) == NULL)			  \
			@throw [OFOutOfRangeException newWithClass: isa]; \
									  \
		return tm->field;					  \
	} @finally {							  \
		[mutex unlock];						  \
	}
# else







|







88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
									  \
	if (seconds != seconds_)					  \
		@throw [OFOutOfRangeException newWithClass: isa];	  \
									  \
	[mutex lock];							  \
									  \
	@try {								  \
		if ((tm = localtime(&seconds_)) == NULL)		  \
			@throw [OFOutOfRangeException newWithClass: isa]; \
									  \
		return tm->field;					  \
	} @finally {							  \
		[mutex unlock];						  \
	}
# else

Modified src/OFFile.m from [45991e6e84] to [46fd6ac14d].

272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
	if ((handle = FindFirstFile([path cString], &fd)) ==
	    INVALID_HANDLE_VALUE)
		@throw [OFOpenFileFailedException newWithClass: self
							  path: path
							  mode: @"r"];

	@try {
		OFAutoreleasePool pool2 = [[OFAutoreleasePool alloc] init];

		do {
			OFString *file;

			if (!strcmp(fd.cFileName, ".") ||
			    !strcmp(fd.cFileName, ".."))
				continue;







|







272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
	if ((handle = FindFirstFile([path cString], &fd)) ==
	    INVALID_HANDLE_VALUE)
		@throw [OFOpenFileFailedException newWithClass: self
							  path: path
							  mode: @"r"];

	@try {
		OFAutoreleasePool *pool2 = [[OFAutoreleasePool alloc] init];

		do {
			OFString *file;

			if (!strcmp(fd.cFileName, ".") ||
			    !strcmp(fd.cFileName, ".."))
				continue;

Modified src/asprintf.m from [970a47cdfd] to [571050a700].

37
38
39
40
41
42
43
44
45
46
47
asprintf(char **cString, const char *format, ...)
{
	int ret;
	va_list arguments;

	va_start(arguments, format);
	ret = vasprintf(cString, format, arguments);
	va_end(args);

	return ret;
}







|



37
38
39
40
41
42
43
44
45
46
47
asprintf(char **cString, const char *format, ...)
{
	int ret;
	va_list arguments;

	va_start(arguments, format);
	ret = vasprintf(cString, format, arguments);
	va_end(arguments);

	return ret;
}