ObjFW  Check-in [8e48f0d6a4]

Overview
Comment:OFFile: Rename +[createSymbolicLinkAtPath:…].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8e48f0d6a4ab08cf4c6865b632eebbbc80e7297fecf515a37a3a0918a8799a8b
User & Date: js on 2013-07-09 22:17:58
Other Links: manifest | tags
Context
2013-07-10
12:33
Get rid of a new Clang warning. check-in: 6143baaaee user: js tags: trunk
2013-07-09
22:17
OFFile: Rename +[createSymbolicLinkAtPath:…]. check-in: 8e48f0d6a4 user: js tags: trunk
00:33
Fix wrong include name. check-in: 12095daf4e user: js tags: trunk
Changes

Modified src/OFFile.h from [efa4025e4a] to [ddafd2190c].

215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
 *
 * @param source The path of the item for which a symbolic link should be
 *		 created
 * @param destination The path of the item which should symbolically link to the
 *		      source
 */
+ (void)createSymbolicLinkAtPath: (OFString*)source
		 destinationPath: (OFString*)destination;

/*!
 * @brief Returns the destination of the symbolic link at the specified path.
 *
 * @param path The path to the symbolic link
 * @return The destination of the symbolic link at the specified path
 */







|







215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
 *
 * @param source The path of the item for which a symbolic link should be
 *		 created
 * @param destination The path of the item which should symbolically link to the
 *		      source
 */
+ (void)createSymbolicLinkAtPath: (OFString*)source
	     withDestinationPath: (OFString*)destination;

/*!
 * @brief Returns the destination of the symbolic link at the specified path.
 *
 * @param path The path to the symbolic link
 * @return The destination of the symbolic link at the specified path
 */

Modified src/OFFile.m from [cbc105e33a] to [bace7b9989].

640
641
642
643
644
645
646
647
648
649
650
651
652
653
654

	objc_autoreleasePoolPop(pool);
}
#endif

#ifdef OF_HAVE_SYMLINK
+ (void)createSymbolicLinkAtPath: (OFString*)source
		 destinationPath: (OFString*)destination
{
	void *pool;

	if (source == nil || destination == nil)
		@throw [OFInvalidArgumentException exception];

	pool = objc_autoreleasePoolPush();







|







640
641
642
643
644
645
646
647
648
649
650
651
652
653
654

	objc_autoreleasePoolPop(pool);
}
#endif

#ifdef OF_HAVE_SYMLINK
+ (void)createSymbolicLinkAtPath: (OFString*)source
	     withDestinationPath: (OFString*)destination
{
	void *pool;

	if (source == nil || destination == nil)
		@throw [OFInvalidArgumentException exception];

	pool = objc_autoreleasePoolPush();