mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
52ee556d01
commit
75402211f2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue