Add a couple of __strong annotations to pointers. Any non-id pointer that can

store GC'd memory must be __strong.  Currently, this annotation is largely
ignored, because the runtime is a lot more lax about what may store pointers
than Apple's, but this will be tightened up in the future.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-05-30 11:40:26 +00:00
parent 52ee556d01
commit 75402211f2

View file

@ -316,7 +316,7 @@ failure:
@interface NSDataStatic : NSData
{
NSUInteger length;
void *bytes;
__strong void *bytes;
}
@end
@ -329,7 +329,7 @@ failure:
@interface NSMutableDataMalloc : NSMutableData
{
NSUInteger length;
void *bytes;
__strong void *bytes;
#if GS_WITH_GC
BOOL owned;
#else