mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
NSPointerFunctions added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27655 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
94296c4747
commit
8ed48908cd
5 changed files with 188 additions and 6 deletions
|
@ -45,7 +45,7 @@ enum {
|
|||
NSPointerFunctionsStrongMemory = (0<<0),
|
||||
|
||||
/** Garbage collected weak references */
|
||||
NSPointerFunctionsZeroingWeakgMemory = (1<<0),
|
||||
NSPointerFunctionsZeroingWeakMemory = (1<<0),
|
||||
|
||||
/** Non-GC memory */
|
||||
NSPointerFunctionsOpaqueMemory = (2<<0),
|
||||
|
@ -86,7 +86,7 @@ enum {
|
|||
NSPointerFunctionsIntegerPersonality = (5<<8),
|
||||
|
||||
|
||||
/** Request the memory aquire function to allocate/copy items.
|
||||
/** Request the memory acquire function to allocate/copy items.
|
||||
*/
|
||||
NSPointerFunctionsCopyIn = (1<<16)
|
||||
};
|
||||
|
@ -103,7 +103,7 @@ typedef NSUInteger NSPointerFunctionsOptions;
|
|||
- (id) initWithOptions: (NSPointerFunctionsOptions)options;
|
||||
|
||||
- (void* (*)(const void *item,
|
||||
NSUInteger (*size)(const void *item), BOOL shouldCopy)) aquireFunction;
|
||||
NSUInteger (*size)(const void *item), BOOL shouldCopy)) acquireFunction;
|
||||
|
||||
- (NSString (*)(const void *item)) descriptionFunction;
|
||||
|
||||
|
@ -127,8 +127,8 @@ typedef NSUInteger NSPointerFunctionsOptions;
|
|||
- (void) setIsEqualFunction: (BOOL (*)(const void *item1, const void *item2,
|
||||
NSUInteger (*size)(const void *item)))func;
|
||||
|
||||
- (void) setRelinquishFunction: (NSUInteger (*)(const void *item,
|
||||
NSUInteger (*size)(const void *item)))func;
|
||||
- (void) setRelinquishFunction: (void (*)(const void *item,
|
||||
NSUInteger (*size)(const void *item))) func;
|
||||
|
||||
- (void) setSizeFunction: (NSUInteger (*)(const void *item))func;
|
||||
|
||||
|
@ -140,7 +140,7 @@ typedef NSUInteger NSPointerFunctionsOptions;
|
|||
|
||||
- (BOOL) usesStrongWriteBarrier;
|
||||
|
||||
- (BOOL) usesWeak ReadAndWriteBarriers;
|
||||
- (BOOL) usesWeakReadAndWriteBarriers;
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue