forked from gnustep/libobjc2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented support for __weak with ARC.
ARC functions are all now exposed in a header, but not yet documented. See the ARC ABI spec for now: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#runtime
- Loading branch information
theraven
committed
Jun 29, 2011
1 parent
065531b
commit bc87ed2
Showing
9 changed files
with
230 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
#include <unistd.h> | ||
#include <string.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
|
||
#ifdef ENABLE_GC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
id objc_autorelease(id obj); | ||
id objc_autoreleaseReturnValue(id obj); | ||
id objc_initWeak(id *object, id value); | ||
id objc_loadWeak(id* object); | ||
id objc_loadWeakRetained(id* obj); | ||
id objc_retain(id obj); | ||
id objc_retainAutorelease(id obj); | ||
id objc_retainAutoreleaseReturnValue(id obj); | ||
id objc_retainAutoreleasedReturnValue(id obj); | ||
id objc_retainBlock(id b); | ||
id objc_storeStrong(id *object, id value); | ||
id objc_storeWeak(id *addr, id obj); | ||
void *objc_autoreleasePoolPush(void); | ||
void objc_autoreleasePoolPop(void *pool); | ||
void objc_copyWeak(id *dest, id *src); | ||
void objc_destroyWeak(id* obj); | ||
void objc_moveWeak(id *dest, id *src); | ||
void objc_release(id obj); | ||
/** | ||
* Mark the object as about to begin deallocation. All subsequent reads of | ||
* weak pointers will return 0. This function should be called in -release, | ||
* before calling [self dealloc]. | ||
* | ||
* Nonstandard extension. | ||
*/ | ||
void objc_delete_weak_refs(id obj); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters