mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Lots of little fixes to make -base compile with -Werror (now builds without warnings).
Richard: I'm unsure about three of these, which were fixes in memset() calls in: - NSConcreteMapTable.m - NSConcreteHashTable.m - Additions/NSData+GNUstepBase.m Please can you check them? I think they are intended to zero the entire object (rather than the first word), but the lack of comments makes me unsure. Most changes were just tweaks to variable types. I've also removed some dead code from NSInvocation. This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere. Other improvements: - NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes. - getObjects:andKeys: implemented for NSDictionary (10.5 method) - NSPointerArray and NSHashTable now properly support weak objects. - Tests for weak objects in collections. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f2a54242a7
commit
d2ea054c26
39 changed files with 196 additions and 155 deletions
|
@ -389,7 +389,7 @@ static SEL rlSel;
|
|||
}
|
||||
|
||||
- (NSUInteger) countByEnumeratingWithState: (NSFastEnumerationState*)state
|
||||
objects: (id*)stackbuf
|
||||
objects: (__unsafe_unretained id[])stackbuf
|
||||
count: (NSUInteger)len
|
||||
{
|
||||
NSUInteger size = [self count];
|
||||
|
@ -479,7 +479,7 @@ static SEL rlSel;
|
|||
* Copies the objects from the receiver to aBuffer, which must be
|
||||
* an area of memory large enough to hold them.
|
||||
*/
|
||||
- (void) getObjects: (id[])aBuffer
|
||||
- (void) getObjects: (__unsafe_unretained id[])aBuffer
|
||||
{
|
||||
unsigned i, c = [self count];
|
||||
IMP get = [self methodForSelector: oaiSel];
|
||||
|
@ -492,7 +492,7 @@ static SEL rlSel;
|
|||
* Copies the objects from the range aRange of the receiver to aBuffer,
|
||||
* which must be an area of memory large enough to hold them.
|
||||
*/
|
||||
- (void) getObjects: (id[])aBuffer range: (NSRange)aRange
|
||||
- (void) getObjects: (__unsafe_unretained id[])aBuffer range: (NSRange)aRange
|
||||
{
|
||||
unsigned i, j = 0, c = [self count], e = aRange.location + aRange.length;
|
||||
IMP get = [self methodForSelector: oaiSel];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue