ObjFW  Check-in [46cf9f33a8]

Overview
Comment:OFApplication: Use EXIT_SUCCESS as default status
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 46cf9f33a83b91c64fa3cf1b7aa1b2ea2667a799a26e68410d6e33ded4adcaea
User & Date: js on 2014-10-24 19:12:00
Other Links: manifest | tags
Context
2014-10-24
19:12
OFProcess: Use _exit() on failure check-in: f45a6bb10b user: js tags: trunk
19:12
OFApplication: Use EXIT_SUCCESS as default status check-in: 46cf9f33a8 user: js tags: trunk
2014-10-04
21:59
Add +[OFSystemInfo native8BitEncoding] check-in: ec66e49dca user: js tags: trunk
Changes

Modified src/OFApplication.h from [ce851e8072] to [293fafa26f].

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
 * @brief Returns the environment of the application.
 *
 * @return The environment of the application
 */
+ (OFDictionary*)environment;

/*!
 * @brief Terminates the application.
 */
+ (void)terminate OF_NO_RETURN;

/*!
 * @brief Terminates the application with the specified status.
 *
 * @param status The status with which the application will terminate







|







158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
 * @brief Returns the environment of the application.
 *
 * @return The environment of the application
 */
+ (OFDictionary*)environment;

/*!
 * @brief Terminates the application with the EXIT_SUCCESS status.
 */
+ (void)terminate OF_NO_RETURN;

/*!
 * @brief Terminates the application with the specified status.
 *
 * @param status The status with which the application will terminate

Modified src/OFApplication.m from [3fb6075d12] to [530a78c11e].

465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
	objc_autoreleasePoolPop(pool);

	[runLoop run];
}

- (void)terminate
{
	exit(0);
}

- (void)terminateWithStatus: (int)status
{
	exit(status);
}
@end







|







465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
	objc_autoreleasePoolPop(pool);

	[runLoop run];
}

- (void)terminate
{
	exit(EXIT_SUCCESS);
}

- (void)terminateWithStatus: (int)status
{
	exit(status);
}
@end