Author: rfm
Date: Wed Jun 22 11:43:00 2016
New Revision: 39903
URL: http://svn.gna.org/viewcvs/gnustep?rev=39903&view=rev
Log:
fix 64bit error in method type declarations
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Tests/base/KVC/mutable.m
Modified: libs/base/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=39903&r1=39902&r2=39903&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog (original)
+++ libs/base/trunk/ChangeLog Wed Jun 22 11:43:00 2016
@@ -8,6 +8,7 @@
running.
* Headers/Foundation/NSDistributedLock.h: Add lock ivar.
* Source/NSDistributedLock.m: Make class thread-safe using lock.
+ * Source/Tests/base/KVC/mutable.m: Fix 64bit error in method types.
2016-06-19 Richard Frith-Macdonald <[email protected]>
Modified: libs/base/trunk/Tests/base/KVC/mutable.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/KVC/mutable.m?rev=39903&r1=39902&r2=39903&view=diff
==============================================================================
--- libs/base/trunk/Tests/base/KVC/mutable.m (original)
+++ libs/base/trunk/Tests/base/KVC/mutable.m Wed Jun 22 11:43:00 2016
@@ -78,7 +78,7 @@
return self;
}
-- (void) insertObject:(id)obj inNumbersAtIndex:(unsigned int)index
+- (void) insertObject: (id)obj inNumbersAtIndex: (NSUInteger)index
{
if (![obj isEqualToString:@"NaN"])
{
@@ -86,20 +86,20 @@
}
}
-- (void) removeObjectFromNumbersAtIndex:(unsigned int)index
+- (void) removeObjectFromNumbersAtIndex: (NSUInteger)index
{
if (![[numbers objectAtIndex:index] isEqualToString:@"One"])
[numbers removeObjectAtIndex:index];
}
-- (void) replaceObjectInNumbersAtIndex:(unsigned int)index withObject:(id)obj
+- (void) replaceObjectInNumbersAtIndex: (NSUInteger)index withObject: (id)obj
{
if (index == 1)
obj = @"Two";
[numbers replaceObjectAtIndex:index withObject:obj];
}
-- (void) setCities:(NSArray *)other
+- (void) setCities: (NSArray *)other
{
[cities setArray:other];
}
@@ -147,13 +147,13 @@
return self;
}
-- (void) addOneObject:(id)anObject
+- (void) addOneObject: (id)anObject
{
if (![anObject isEqualToString:@"ten"])
[one addObject:anObject];
}
-- (void) removeOneObject:(id)anObject
+- (void) removeOneObject: (id)anObject
{
if (![anObject isEqualToString:@"one"])
{
@@ -161,7 +161,7 @@
}
}
-- (void) setTwo:(NSMutableSet *)set
+- (void) setTwo: (NSMutableSet *)set
{
[two setSet:set];
}
@@ -189,11 +189,11 @@
PASS([proxy isKindOfClass:[NSMutableArray class]],
"proxy is a kind of NSMutableArray")
[proxy removeLastObject];
- PASS_EXCEPTION([proxy addObject:@"NaN"];,
+ PASS_EXCEPTION([proxy addObject: @"NaN"];,
NSRangeException,"bad removal causes range exception when observing")
- [proxy replaceObjectAtIndex:1 withObject:@"Seven"];
- [proxy addObject:@"Four"];
- [proxy removeObject:@"One"];
+ [proxy replaceObjectAtIndex: 1 withObject: @"Seven"];
+ [proxy addObject: @"Four"];
+ [proxy removeObject: @"One"];
o = [NSArray arrayWithObjects:
@"One",
@@ -201,74 +201,74 @@
@"Three",
@"Four",
nil];
- PASS([[list valueForKey:@"numbers"] isEqualToArray: o],
+ PASS([[list valueForKey: @"numbers"] isEqualToArray: o],
"KVC mutableArrayValueForKey: proxy works with array proxy methods")
- proxy = [list mutableArrayValueForKey:@"cities"];
- PASS([proxy isKindOfClass:[NSMutableArray class]],
+ proxy = [list mutableArrayValueForKey: @"cities"];
+ PASS([proxy isKindOfClass: [NSMutableArray class]],
"proxy is a kind of NSMutableArray")
- [proxy addObject:@"Lima"];
+ [proxy addObject: @"Lima"];
o = [NSArray arrayWithObjects:
@"Grand Rapids",
@"Chicago",
@"Lima",
nil];
- PASS([[list valueForKey:@"cities"] isEqualToArray: o],
+ PASS([[list valueForKey: @"cities"] isEqualToArray: o],
"KVC mutableArrayValueForKey: proxy works with set<Key>:")
- proxy = [list mutableArrayValueForKey:@"third"];
- PASS([proxy isKindOfClass:[NSMutableArray class]],
+ proxy = [list mutableArrayValueForKey: @"third"];
+ PASS([proxy isKindOfClass: [NSMutableArray class]],
"proxy is a kind of NSMutableArray")
- PASS(proxy != [list valueForKey:@"third"],
+ PASS(proxy != [list valueForKey: @"third"],
"KVC mutableArrayValueForKey: returns a proxy array for the ivar")
- PASS([[proxy objectAtIndex:1] isEqualToString:@"b"],
+ PASS([[proxy objectAtIndex: 1] isEqualToString: @"b"],
"This proxy works")
- temp = [NSDictionary dictionaryWithObject:list forKey:@"list"];
- proxy = [temp mutableArrayValueForKeyPath:@"list.numbers"];
- PASS([proxy isKindOfClass:NSClassFromString(@"NSKeyValueMutableArray")],
+ temp = [NSDictionary dictionaryWithObject: list forKey: @"list"];
+ proxy = [temp mutableArrayValueForKeyPath: @"list.numbers"];
+ PASS([proxy isKindOfClass: NSClassFromString(@"NSKeyValueMutableArray")],
"mutableArrayValueForKey: works")
Sets * set = [[[Sets alloc] init] autorelease];
NSMutableSet * setProxy;
- setProxy = [set mutableSetValueForKey:@"one"];
- PASS([setProxy isKindOfClass:[NSMutableSet class]],
+ setProxy = [set mutableSetValueForKey: @"one"];
+ PASS([setProxy isKindOfClass: [NSMutableSet class]],
"proxy is a kind of NSMutableSet")
- [setProxy removeObject:@"one"];
- [setProxy addObject:@"ten"];
- [setProxy removeObject:@"eight"];
- [setProxy addObject:@"three"];
-
- o = [NSSet setWithObjects:@"one", @"two", @"three", nil];
+ [setProxy removeObject: @"one"];
+ [setProxy addObject: @"ten"];
+ [setProxy removeObject: @"eight"];
+ [setProxy addObject: @"three"];
+
+ o = [NSSet setWithObjects: @"one", @"two", @"three", nil];
PASS([setProxy isEqualToSet: o],
"KVC mutableSetValueForKey: proxy uses methods")
- setProxy = [set mutableSetValueForKey:@"two"];
- PASS([setProxy isKindOfClass:[NSMutableSet class]],
+ setProxy = [set mutableSetValueForKey: @"two"];
+ PASS([setProxy isKindOfClass: [NSMutableSet class]],
"proxy is a kind of NSMutableSet")
- [setProxy addObject:@"seven"];
- [setProxy minusSet:[NSSet setWithObject:@"eight"]];
- o = [NSSet setWithObjects:@"one", @"two", @"seven", nil];
- PASS([setProxy isEqualToSet: o],
+ [setProxy addObject: @"seven"];
+ [setProxy minusSet: [NSSet setWithObject: @"eight"]];
+ o = [NSSet setWithObjects: @"one", @"two", @"seven", nil];
+ PASS([setProxy isEqualToSet: o],
"KVC mutableSetValueForKey: proxy works with set<Key>:")
- setProxy = [set mutableSetValueForKey:@"three"];
- PASS([setProxy isKindOfClass:[NSMutableSet class]],
+ setProxy = [set mutableSetValueForKey: @"three"];
+ PASS([setProxy isKindOfClass: [NSMutableSet class]],
"proxy is kind of NSMutableSet")
- PASS(setProxy != [set valueForKey:@"three"],
+ PASS(setProxy != [set valueForKey: @"three"],
"KVC mutableSetValueForKey: returns a proxy set for the ivar")
- [setProxy addObject:@"seven"];
- [setProxy removeObject:@"eight"];
- o = [NSSet setWithObjects:@"one", @"two", @"seven", nil];
- PASS([setProxy isEqualToSet: o], "this proxy works")
-
- temp = [NSDictionary dictionaryWithObject:set forKey:@"set"];
- setProxy = [temp mutableSetValueForKeyPath:@"set.three"];
- PASS([setProxy isKindOfClass:NSClassFromString(@"NSKeyValueMutableSet")],
+ [setProxy addObject: @"seven"];
+ [setProxy removeObject: @"eight"];
+ o = [NSSet setWithObjects: @"one", @"two", @"seven", nil];
+ PASS([setProxy isEqualToSet: o], "this proxy works")
+
+ temp = [NSDictionary dictionaryWithObject: set forKey: @"set"];
+ setProxy = [temp mutableSetValueForKeyPath: @"set.three"];
+ PASS([setProxy isKindOfClass: NSClassFromString(@"NSKeyValueMutableSet")],
"mutableSetValueForKey: works")
[list setX: s];
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs