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:
theraven 2011-05-30 11:40:26 +00:00
parent 361a1fe3d2
commit 3da96c981c

View file

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