Author: rfm
Date: Mon Mar 27 11:00:35 2017
New Revision: 40418
URL: http://svn.gna.org/viewcvs/gnustep?rev=40418&view=rev
Log:
Update NSComparisonResult to use NS_ENUM
Modified:
libs/base/trunk/Headers/Foundation/NSObjCRuntime.h
libs/base/trunk/Source/NSDictionary.m
Modified: libs/base/trunk/Headers/Foundation/NSObjCRuntime.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Headers/Foundation/NSObjCRuntime.h?rev=40418&r1=40417&r2=40418&view=diff
==============================================================================
--- libs/base/trunk/Headers/Foundation/NSObjCRuntime.h (original)
+++ libs/base/trunk/Headers/Foundation/NSObjCRuntime.h Mon Mar 27 11:00:35 2017
@@ -265,11 +265,10 @@
* <code>NSOrderedDescending</code>, for left hand side equals, less than, or
* greater than right hand side.
*/
-typedef enum _NSComparisonResult
+typedef NS_ENUM(NSInteger, NSComparisonResult)
{
- NSOrderedAscending = -1, NSOrderedSame, NSOrderedDescending
-}
-NSComparisonResult;
+ NSOrderedAscending = (NSInteger)-1, NSOrderedSame, NSOrderedDescending
+};
enum {NSNotFound = NSIntegerMax};
Modified: libs/base/trunk/Source/NSDictionary.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSDictionary.m?rev=40418&r1=40417&r2=40418&view=diff
==============================================================================
--- libs/base/trunk/Source/NSDictionary.m (original)
+++ libs/base/trunk/Source/NSDictionary.m Mon Mar 27 11:00:35 2017
@@ -920,7 +920,7 @@
struct foo { NSDictionary *d; SEL s; IMP i; };
-static int
+static NSInteger
compareIt(id o1, id o2, void* context)
{
struct foo *f = (struct foo*)context;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs