mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
361a1fe3d2
commit
3da96c981c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue