mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Update NSComparisonResult to use NS_ENUM
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40418 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
02688abdb6
commit
7c9d7acafa
2 changed files with 4 additions and 5 deletions
|
@ -265,11 +265,10 @@ GS_EXPORT void NSLogv(NSString *format, va_list args) NS_FORMAT_FUNCTION(1,0);
|
|||
* <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};
|
||||
|
||||
|
|
|
@ -920,7 +920,7 @@ static SEL appSel;
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue