fix enums

This commit is contained in:
Matvii Jarosh 2024-11-19 18:45:39 +02:00
parent aa4a062692
commit 055cb708f9
2 changed files with 3 additions and 48 deletions

View file

@ -1,11 +1,8 @@
<<<<<<< HEAD
2024-11-19 Matvii Jarosh <matviijarosh@gmail.com> 2024-11-19 Matvii Jarosh <matviijarosh@gmail.com>
* Header/Foundation/NSGeometry.h: fixed NSRectEdge and * Header/Foundation/NSGeometry.h: fixed NSRectEdge and
NSAlignmentOptions enums. NSAlignmentOptions enums.
=======
>>>>>>> e0b37c4a1b60bd93877d40d814ebb99944635478
2024-11-18 Matvii Jarosh <matviijarosh@gmail.com> 2024-11-18 Matvii Jarosh <matviijarosh@gmail.com>
* Source/NSGeometry.m: added NSIntegralRectWithOptions function. * Source/NSGeometry.m: added NSIntegralRectWithOptions function.
@ -15,36 +12,6 @@
NSSizeFromCGSize and NSSizeToCGSizea functions. NSSizeFromCGSize and NSSizeToCGSizea functions.
* MISSING: * MISSING:
<<<<<<< HEAD
=======
2024-11-19 Richard Frith-Macdonald <rfm@gnu.org>
* GSMime: fixed buffer overrun in rare circumstances when decoding
an encoded word in a header.
fix to cope with dealloc of uninitialised instances of GSMimeSMTPClient
* GSTLS: clean up used resources on exit
* NSCharacterSet: Fix retain count of cached character sets
* NSDateFormatter: fix to cope with dealloc of uninitialised instances
* NSFileManager: fix leak of enumerator when enumerating files at
a directory specified by URL
* NSHTTPCookie: fix buffer overrun parsing cookie header fields
* NSInvocation: fix leak of type information memory when passing
general struct argument/return values
* NSNumberFormatter: fix to cope with dealloc of uninitialised instances
* NSOperation: fix to cope with dealloc of uninitialised instances
* NSPredicate: fix leaks of keypath and set expressions
also fix leak of objects if exception occurs while scanning predicate
string
* NSPropertyList: fix leaks if exception occurs while parsing
* NSRegularExpression: fix leaks if exception occurs while parsing
* NSString: fix lead in dataUsingEncoding:allowLossyConversion:
* NSTimeZone: fix retain cycle in absolute time zones
fix leak of ICU calendar in -localizedName:locale:
* NSURL: fix leaks when initialising with unparseable string etc
* Testcases: fix many leaks so that most tests run to completion
without any leaked memory.
>>>>>>> e0b37c4a1b60bd93877d40d814ebb99944635478
2024-11-14 Richard Frith-Macdonald <rfm@gnu.org> 2024-11-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: Restructure a bit to expose resource lookup * Source/NSBundle.m: Restructure a bit to expose resource lookup

View file

@ -97,17 +97,13 @@ typedef NSRect *NSRectArray;
typedef NSRect *NSRectPointer; typedef NSRect *NSRectPointer;
#endif #endif
<<<<<<< HEAD
typedef NS_ENUM(NSUInteger, NSRectEdge) typedef NS_ENUM(NSUInteger, NSRectEdge)
=======
typedef enum
>>>>>>> e0b37c4a1b60bd93877d40d814ebb99944635478
{ {
NSMinXEdge = 0, NSMinXEdge = 0,
NSMinYEdge = 1, NSMinYEdge = 1,
NSMaxXEdge = 2, NSMaxXEdge = 2,
NSMaxYEdge = 3 NSMaxYEdge = 3
} NSRectEdge; };
/** Sides of a rectangle. /** Sides of a rectangle.
<example> <example>
{ {
@ -148,11 +144,7 @@ typedef enum
</example> </example>
<p>NSAlignmentOptions</p>*/ <p>NSAlignmentOptions</p>*/
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST) #if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
<<<<<<< HEAD typedef NS_ENUM(unsigned long long, NSAlignmentOptions)
typedef NS_ENUM(unsigned long long, NSAlignmentOptions)
=======
typedef enum
>>>>>>> e0b37c4a1b60bd93877d40d814ebb99944635478
{ {
NSAlignMinXInward = 1ULL << 0, NSAlignMinXInward = 1ULL << 0,
NSAlignMinYInward = 1ULL << 1, NSAlignMinYInward = 1ULL << 1,
@ -185,11 +177,7 @@ typedef enum
| NSAlignMaxXNearest | NSAlignMaxXNearest
| NSAlignMinYNearest | NSAlignMinYNearest
| NSAlignMaxYNearest | NSAlignMaxYNearest
<<<<<<< HEAD
}; };
=======
} NSAlignmentOptions;
>>>>>>> e0b37c4a1b60bd93877d40d814ebb99944635478
#endif #endif
/** /**