ObjFW  Check-in [65d5a8f675]

Overview
Comment:Fix a few format string length modifiers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 65d5a8f67513a278ebc9960ead04fab90f38f9b069440c056983fce3dac718c0
User & Date: js on 2013-09-15 21:22:38
Other Links: manifest | tags
Context
2013-09-16
17:02
Adjust stret forwarding to recent Clang change. check-in: b8e3900bef user: js tags: trunk
2013-09-15
21:22
Fix a few format string length modifiers. check-in: 65d5a8f675 user: js tags: trunk
18:51
OFAutoreleasePool: Free pool cache on thread exit. check-in: 29e4d00225 user: js tags: trunk
Changes

Modified src/exceptions/OFInvalidJSONException.m from [240dacf8f4] to [71b494f3aa].

63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

	[super dealloc];
}

- (OFString*)description
{
	return [OFString stringWithFormat:
	    @"The JSON representation is invalid in line %zd!", _line];
}

- (OFString*)string
{
	return _string;
}

- (size_t)line
{
	return _line;
}
@end







|












63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

	[super dealloc];
}

- (OFString*)description
{
	return [OFString stringWithFormat:
	    @"The JSON representation is invalid in line %zu!", _line];
}

- (OFString*)string
{
	return _string;
}

- (size_t)line
{
	return _line;
}
@end

Modified src/exceptions/OFMalformedXMLException.m from [6866baec36] to [5e3ec3023c].

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
}

- (OFString*)description
{
	if (_parser != nil)
		return [OFString stringWithFormat:
		    @"An XML parser of type %@ encountered malformed XML in "
		    @"line %zd!", [_parser class], [_parser lineNumber]];
	else
		return @"An XML parser encountered malformed XML!";
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end







|









45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
}

- (OFString*)description
{
	if (_parser != nil)
		return [OFString stringWithFormat:
		    @"An XML parser of type %@ encountered malformed XML in "
		    @"line %zu!", [_parser class], [_parser lineNumber]];
	else
		return @"An XML parser encountered malformed XML!";
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end

Modified src/exceptions/OFUnboundPrefixException.m from [a4f9d416aa] to [2ace552f90].

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
	[super dealloc];
}

- (OFString*)description
{
	return [OFString stringWithFormat:
	    @"An XML parser of type %@ encountered the unbound prefix %@ in "
	    @"line %zd!", [_parser class], _prefix, [_parser lineNumber]];
}

- (OFString*)prefix
{
	OF_GETTER(_prefix, false)
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end







|












68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
	[super dealloc];
}

- (OFString*)description
{
	return [OFString stringWithFormat:
	    @"An XML parser of type %@ encountered the unbound prefix %@ in "
	    @"line %zu!", [_parser class], _prefix, [_parser lineNumber]];
}

- (OFString*)prefix
{
	OF_GETTER(_prefix, false)
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
}
@end

Modified tests/TestsAppDelegate.m from [6cf39dd232] to [10cb7d4bca].

324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

		if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME)
			[OFApplication terminateWithStatus: _fails];

		VIDEO_WaitVSync();
	}
#elif defined(_PSP)
	[self outputString: [OFString stringWithFormat: @"%zd tests failed!",
							_fails]
		   inColor: NO_COLOR];
	sceKernelSleepThreadCB();
#else
	[OFApplication terminateWithStatus: _fails];
#endif
}
@end







|








324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

		if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME)
			[OFApplication terminateWithStatus: _fails];

		VIDEO_WaitVSync();
	}
#elif defined(_PSP)
	[self outputString: [OFString stringWithFormat: @"%d tests failed!",
							_fails]
		   inColor: NO_COLOR];
	sceKernelSleepThreadCB();
#else
	[OFApplication terminateWithStatus: _fails];
#endif
}
@end