Skip to content

Commit 7f8a22c

Browse files
committed
Make it easier to refer to enum constants
1 parent 7782ae4 commit 7f8a22c

File tree

21 files changed

+95
-89
lines changed

21 files changed

+95
-89
lines changed

crates/dispatch2/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ typedef.dispatch_io_type_t.skipped = true
3939
typedef.dispatch_io_close_flags_t.skipped = true
4040
typedef.dispatch_io_interval_flags_t.skipped = true
4141
# Lonely enum constant that we want to tie to dispatch_time_t
42-
enum.anonymous.constants.DISPATCH_WALLTIME_NOW.skipped = true
42+
const.DISPATCH_WALLTIME_NOW.skipped = true
4343

4444
# `dispatch_object_t` is a special union that declares all the different kinds
4545
# of dispatch objects, but that won't work in Rust.

crates/header-translator/src/config.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ pub struct LibraryConfig {
324324
#[serde(rename = "typedef")]
325325
#[serde(default)]
326326
pub typedef_data: HashMap<String, TypedefData>,
327+
#[serde(rename = "const")]
328+
#[serde(default)]
329+
pub const_data: HashMap<String, ConstantData>,
327330

328331
#[serde(default)]
329332
pub module: HashMap<String, ModuleConfig>,
@@ -451,7 +454,7 @@ pub struct RecordData {
451454

452455
#[derive(Deserialize, Debug, Default, Clone, PartialEq, Eq)]
453456
#[serde(deny_unknown_fields)]
454-
pub struct EnumVariantData {
457+
pub struct ConstantData {
455458
#[serde(default)]
456459
pub skipped: bool,
457460
#[serde(rename = "use-value")]
@@ -467,8 +470,6 @@ pub struct EnumData {
467470
#[serde(rename = "use-value")]
468471
#[serde(default)]
469472
pub use_value: Option<bool>,
470-
#[serde(default)]
471-
pub constants: HashMap<String, EnumVariantData>,
472473
}
473474

474475
#[derive(Deserialize, Debug, Default, Clone, PartialEq, Eq)]

crates/header-translator/src/stmt.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ impl Stmt {
13451345
let data = context
13461346
.library(&id)
13471347
.enum_data
1348-
.get(id.name.as_deref().unwrap_or("anonymous"))
1348+
.get(id.name.as_deref().unwrap_or("__anonymous__"))
13491349
.cloned()
13501350
.unwrap_or_default();
13511351
if data.skipped {
@@ -1369,7 +1369,12 @@ impl Stmt {
13691369
let name = entity.get_name().expect("enum constant name");
13701370
let availability = Availability::parse(&entity, context);
13711371

1372-
let const_data = data.constants.get(&name).cloned().unwrap_or_default();
1372+
let const_data = context
1373+
.library(&id)
1374+
.const_data
1375+
.get(&name)
1376+
.cloned()
1377+
.unwrap_or_default();
13731378

13741379
if const_data.skipped {
13751380
return;

framework-crates/objc2-app-kit/translation-config.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ protocol.NSAccessibilityElement.renamed = "NSAccessibilityElementProtocol"
4747
class.NSDocument.methods."setDisplayName:".skipped = true
4848

4949
# Wrong type for enum
50-
enum.anonymous.constants.NSOKButton.skipped = true
51-
enum.anonymous.constants.NSCancelButton.skipped = true
52-
enum.anonymous.constants.NSFileHandlingPanelCancelButton.skipped = true
53-
enum.anonymous.constants.NSFileHandlingPanelOKButton.skipped = true
50+
const.NSOKButton.skipped = true
51+
const.NSCancelButton.skipped = true
52+
const.NSFileHandlingPanelCancelButton.skipped = true
53+
const.NSFileHandlingPanelOKButton.skipped = true
5454

5555
# These subclass a generic struct, and hence the type parameter defaults to
5656
# `AnyObject`, which is not PartialEq, Eq nor Hash.

framework-crates/objc2-application-services/translation-config.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ external.NSView.module = "AppKit.NSView"
2121
protocol.PDEPanel.methods.panelView.skipped = true
2222

2323
# Mapped as `false`, would need a cast to int to work.
24-
enum.anonymous.constants.kPMUnlocked.use-value = true
24+
const.kPMUnlocked.use-value = true
2525

2626
# Needs AliasRecord/FSSpec/FSRef from CoreServices.CarbonCore.Files
2727
struct.ICFileSpec.skipped = true
@@ -42,16 +42,16 @@ typedef.ProcessInfoExtendedRecPtr.skipped = true
4242
fn.PMPrinterGetDriverReleaseInfo.skipped = true
4343

4444
# Uses constants from CoreServices.CarbonCore.MacErrors
45-
enum.anonymous.constants.kPMNoError.use-value = true
46-
enum.anonymous.constants.kPMInvalidParameter.use-value = true
47-
enum.anonymous.constants.kPMAllocationFailure.use-value = true
45+
const.kPMNoError.use-value = true
46+
const.kPMInvalidParameter.use-value = true
47+
const.kPMAllocationFailure.use-value = true
4848

4949
# Overflows
50-
enum.anonymous.constants.kProcessDictionaryIncludeAllInformationMask.skipped = true
50+
const.kProcessDictionaryIncludeAllInformationMask.skipped = true
5151

5252
# Uses `sizeof`
53-
enum.anonymous.constants.kICFileSpecHeaderSize.skipped = true
54-
enum.anonymous.constants.extendedBlockLen.skipped = true
53+
const.kICFileSpecHeaderSize.skipped = true
54+
const.extendedBlockLen.skipped = true
5555

5656
# Uses Str255 (an array) directly in parameter, which is unclear ABI-wise.
5757
fn.ICGetConfigName.skipped = true

framework-crates/objc2-audio-toolbox/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn.AudioOutputUnitGetHostIcon.skipped = true
113113
protocol.AUCocoaUIBase.methods."uiViewForAudioUnit:withSize:".skipped = true
114114

115115
# Value too large
116-
enum.anonymous.constants.AUEventSampleTimeImmediate.use-value = true
116+
const.AUEventSampleTimeImmediate.use-value = true
117117

118118
# Defined for real in CoreMIDI, AudioToolbox just redefines it
119119
typedef.MIDIChannelNumber.skipped = true

framework-crates/objc2-core-audio-types/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ watchos = "6.0"
1111
visionos = "1.0"
1212

1313
# Requires a cast, and deprecated anyhow
14-
enum.anonymous.constants.AVAudioSessionErrorInsufficientPriority.skipped = true
14+
const.AVAudioSessionErrorInsufficientPriority.skipped = true
1515

1616
# Differs based on architecture
1717
typedef.AVAudioInteger.skipped = true

framework-crates/objc2-core-graphics/translation-config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ static.kCGBitmapByteOrder32Host.skipped = true
5252
# Uses defines from IOKit
5353
enum.CGEventFlags.use-value = true
5454
enum.CGEventType.use-value = true
55-
enum.CGEventType.constants.kCGEventTapDisabledByTimeout.use-value = true
56-
enum.CGEventType.constants.kCGEventTapDisabledByUserInput.use-value = true
55+
const.kCGEventTapDisabledByTimeout.use-value = true
56+
const.kCGEventTapDisabledByUserInput.use-value = true

framework-crates/objc2-core-midi/translation-config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ watchos = "8.0"
1212
visionos = "1.0"
1313

1414
# Wrongly renamed (Swift's renaming algorithm is insufficient)
15-
enum.MIDIProtocolID.constants.kMIDIProtocol_1_0.skipped = true
16-
enum.MIDIProtocolID.constants.kMIDIProtocol_2_0.skipped = true
15+
const.kMIDIProtocol_1_0.skipped = true
16+
const.kMIDIProtocol_2_0.skipped = true

framework-crates/objc2-core-services/translation-config.toml

+13-13
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ fn.CallComponentFunction.skipped = true
6666
fn.CallComponentFunctionWithStorage.skipped = true
6767

6868
# Defaults to c_ulong, which is wrong on 32-bit targets.
69-
enum.anonymous.constants.kFSEventStreamEventIdSinceNow.skipped = true
69+
const.kFSEventStreamEventIdSinceNow.skipped = true
7070

7171
# Tries to OR u32s and i32s.
72-
enum.anonymous.constants.kIconServicesCatalogInfoMask.use-value = true
72+
const.kIconServicesCatalogInfoMask.use-value = true
7373

7474
# Literals are out of the i32 range.
75-
enum.anonymous.constants.kFSCatInfoReserved.use-value = true
76-
enum.anonymous.constants.kFSIterateReserved.use-value = true
77-
enum.anonymous.constants.kioACAccessOwnerMask.use-value = true
78-
enum.anonymous.constants.kHelpFolderIcon.use-value = true
79-
enum.anonymous.constants.kInternetPlugInFolderIcon.use-value = true
80-
enum.anonymous.constants.kLocalesFolderIcon.use-value = true
81-
enum.anonymous.constants.kPrinterDriverFolderIcon.use-value = true
82-
enum.anonymous.constants.kScriptingAdditionsFolderIcon.use-value = true
83-
enum.anonymous.constants.kSharedLibrariesFolderIcon.use-value = true
84-
enum.anonymous.constants.kTextEncodingsFolderIcon.use-value = true
85-
enum.anonymous.constants.kAEDebugXMLDebugAll.use-value = true
75+
const.kFSCatInfoReserved.use-value = true
76+
const.kFSIterateReserved.use-value = true
77+
const.kioACAccessOwnerMask.use-value = true
78+
const.kHelpFolderIcon.use-value = true
79+
const.kInternetPlugInFolderIcon.use-value = true
80+
const.kLocalesFolderIcon.use-value = true
81+
const.kPrinterDriverFolderIcon.use-value = true
82+
const.kScriptingAdditionsFolderIcon.use-value = true
83+
const.kSharedLibrariesFolderIcon.use-value = true
84+
const.kTextEncodingsFolderIcon.use-value = true
85+
const.kAEDebugXMLDebugAll.use-value = true

framework-crates/objc2-core-text/translation-config.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ fn.CTFontGetPlatformFont.skipped = true
1818
fn.CTFontCreateWithPlatformFont.skipped = true
1919

2020
# Emits -1 on an unsigned type
21-
enum.CTFontUIFontType.constants.kCTFontUIFontNone.use-value = true
22-
enum.CTRubyAlignment.constants.kCTRubyAlignmentInvalid.use-value = true
23-
enum.CTRubyOverhang.constants.kCTRubyOverhangInvalid.use-value = true
21+
const.kCTFontUIFontNone.use-value = true
22+
const.kCTRubyAlignmentInvalid.use-value = true
23+
const.kCTRubyOverhangInvalid.use-value = true
2424

2525
# Emits 0x80000000 on an int
26-
enum.anonymous.constants.kMORTLigLastAction.use-value = true
27-
enum.anonymous.constants.kMORXCoverVertical.use-value = true
28-
enum.anonymous.constants.kKERXVertical.use-value = true
26+
const.kMORTLigLastAction.use-value = true
27+
const.kMORXCoverVertical.use-value = true
28+
const.kKERXVertical.use-value = true

framework-crates/objc2-disk-arbitration/translation-config.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ fn.DADiskCopyIOMedia.skipped = true
1111

1212
# Uses `err_local` and `err_local_diskarbitration`, which
1313
# are not exposed by the `libc` crate.
14-
enum.anonymous.constants.kDAReturnError.use-value = true
15-
enum.anonymous.constants.kDAReturnBusy.use-value = true
16-
enum.anonymous.constants.kDAReturnBadArgument.use-value = true
17-
enum.anonymous.constants.kDAReturnExclusiveAccess.use-value = true
18-
enum.anonymous.constants.kDAReturnNoResources.use-value = true
19-
enum.anonymous.constants.kDAReturnNotFound.use-value = true
20-
enum.anonymous.constants.kDAReturnNotMounted.use-value = true
21-
enum.anonymous.constants.kDAReturnNotPermitted.use-value = true
22-
enum.anonymous.constants.kDAReturnNotPrivileged.use-value = true
23-
enum.anonymous.constants.kDAReturnNotReady.use-value = true
24-
enum.anonymous.constants.kDAReturnNotWritable.use-value = true
25-
enum.anonymous.constants.kDAReturnUnsupported.use-value = true
14+
const.kDAReturnError.use-value = true
15+
const.kDAReturnBusy.use-value = true
16+
const.kDAReturnBadArgument.use-value = true
17+
const.kDAReturnExclusiveAccess.use-value = true
18+
const.kDAReturnNoResources.use-value = true
19+
const.kDAReturnNotFound.use-value = true
20+
const.kDAReturnNotMounted.use-value = true
21+
const.kDAReturnNotPermitted.use-value = true
22+
const.kDAReturnNotPrivileged.use-value = true
23+
const.kDAReturnNotReady.use-value = true
24+
const.kDAReturnNotWritable.use-value = true
25+
const.kDAReturnUnsupported.use-value = true
2626

2727
# Needs dispatch_queue_t from libdispatch
2828
fn.DASessionSetDispatchQueue.skipped = true

framework-crates/objc2-foundation/translation-config.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class.NSMutableAttributedString.methods."initWithURL:documentAttributes:".skippe
147147
class.NSMutableAttributedString.methods."initWithPath:documentAttributes:".skipped = true
148148

149149
# Wrong type compared to value
150-
enum.anonymous.constants.NSWrapCalendarComponents.skipped = true
150+
const.NSWrapCalendarComponents.skipped = true
151151

152152
# Marked as API_UNAVAILABLE in a category, so we hit the duplicate checking
153153
class.NSLocale.methods.init.skipped = true
@@ -160,7 +160,7 @@ class.NSUserNotification.methods.contentImage.skipped = true
160160
class.NSUserNotification.methods."setContentImage:".skipped = true
161161

162162
# Outlier that really should have been part of the original enum
163-
enum.anonymous.constants.NSProprietaryStringEncoding.skipped = true
163+
const.NSProprietaryStringEncoding.skipped = true
164164

165165
# Has the wrong generic parameter
166166
class.NSDictionary.methods."initWithContentsOfURL:error:".skipped = true
@@ -181,9 +181,9 @@ enum.NSNumberFormatterPadPosition.use-value = true
181181
enum.NSNumberFormatterRoundingMode.use-value = true
182182
enum.NSPropertyListMutabilityOptions.use-value = true
183183
enum.NSPropertyListFormat.use-value = true
184-
enum.anonymous.constants.NS_UnknownByteOrder.skipped = true
185-
enum.anonymous.constants.NS_LittleEndian.skipped = true
186-
enum.anonymous.constants.NS_BigEndian.skipped = true
184+
const.NS_UnknownByteOrder.skipped = true
185+
const.NS_LittleEndian.skipped = true
186+
const.NS_BigEndian.skipped = true
187187

188188
# Uses stuff from different frameworks / system libraries
189189
class.NSOperationQueue.methods.underlyingQueue.skipped = true

framework-crates/objc2-io-kit/translation-config.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ fn.IOServiceAddMatchingNotification.skipped = true
4141
typedef.IOReturn.skipped = true
4242

4343
# Complex expression involving `sizeof`
44-
enum.anonymous.constants.kOSAsyncRef64Size.skipped = true
45-
enum.anonymous.constants.kOSAsyncRef64Count.skipped = true
44+
const.kOSAsyncRef64Size.skipped = true
45+
const.kOSAsyncRef64Count.skipped = true
4646

4747
# Needs io_user_reference_t, and contains arrays in typedefs
4848
typedef.OSAsyncReference64.skipped = true
@@ -73,8 +73,8 @@ fn.IOConnectUnmapMemory64.skipped = true
7373
fn.IONotificationPortSetDispatchQueue.skipped = true
7474

7575
# Value taken from a type that is c_long internally.
76-
enum.anonymous.constants.kXHCISSRootHubAddress.use-value = true
77-
enum.anonymous.constants.kXHCIUSB2RootHubAddress.use-value = true
76+
const.kXHCISSRootHubAddress.use-value = true
77+
const.kXHCIUSB2RootHubAddress.use-value = true
7878

7979
# Recursive
8080
typedef.LowLatencyUserBufferInfo.skipped = true
@@ -85,5 +85,5 @@ typedef.LowLatencyUserBufferInfoV3.skipped = true
8585
struct.LowLatencyUserBufferInfoV3.skipped = true
8686

8787
# Overflows while calculating on 32-bit.
88-
enum.anonymous.constants.kIORPCMessageIDKernel.skipped = true
89-
enum.anonymous.constants.kUSBAllStreams.skipped = true
88+
const.kIORPCMessageIDKernel.skipped = true
89+
const.kUSBAllStreams.skipped = true

framework-crates/objc2-io-usb-host/translation-config.toml

+11-11
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class.IOUSBHostObject.methods."configurationDescriptorWithConfigurationValue:err
2020
fn.IOUSBGetPlatformCapabilityDescriptorWithUUID.skipped = true
2121

2222
# Overflows while calculating.
23-
enum.anonymous.constants.IOUSBHostCIDeviceUpdateCommandData1DescriptorAddress.use-value = true
24-
enum.anonymous.constants.IOUSBHostCINormalTransferData1Buffer.use-value = true
25-
enum.anonymous.constants.IOUSBHostCILinkData1TransferStructureAddress.use-value = true
23+
const.IOUSBHostCIDeviceUpdateCommandData1DescriptorAddress.use-value = true
24+
const.IOUSBHostCINormalTransferData1Buffer.use-value = true
25+
const.IOUSBHostCILinkData1TransferStructureAddress.use-value = true
2626

2727
# Declared twice.
2828
static.IOUSBHostMatchingPropertyKeyProductIDMask.skipped = true
@@ -39,13 +39,13 @@ class.IOUSBHostObject.methods."initWithIOService:queue:error:interestHandler:".s
3939
class.IOUSBHostObject.methods.queue.skipped = true
4040

4141
# Value taken from a type that is c_uint internally.
42-
enum.anonymous.constants.IOUSBHostCITransferCompletionMessageControlStatus.use-value = true
43-
enum.anonymous.constants.IOUSBHostCITransferCompletionMessageControlStatusPhase.use-value = true
42+
const.IOUSBHostCITransferCompletionMessageControlStatus.use-value = true
43+
const.IOUSBHostCITransferCompletionMessageControlStatusPhase.use-value = true
4444

4545
# Overflows while calculating on 32-bit.
46-
enum.anonymous.constants.IOUSBHostCIEndpointCreateCommandData1Descriptor.skipped = true
47-
enum.anonymous.constants.IOUSBHostCIEndpointUpdateCommandData1Descriptor.skipped = true
48-
enum.anonymous.constants.IOUSBHostCIEndpointSetNextTransferCommandData1Address.skipped = true
49-
enum.anonymous.constants.IOUSBHostCISetupTransferData1wIndex.skipped = true
50-
enum.anonymous.constants.IOUSBHostCISetupTransferData1wLength.skipped = true
51-
enum.anonymous.constants.IOUSBHostCITransferCompletionMessageData1TransferStructure.skipped = true
46+
const.IOUSBHostCIEndpointCreateCommandData1Descriptor.skipped = true
47+
const.IOUSBHostCIEndpointUpdateCommandData1Descriptor.skipped = true
48+
const.IOUSBHostCIEndpointSetNextTransferCommandData1Address.skipped = true
49+
const.IOUSBHostCISetupTransferData1wIndex.skipped = true
50+
const.IOUSBHostCISetupTransferData1wLength.skipped = true
51+
const.IOUSBHostCITransferCompletionMessageData1TransferStructure.skipped = true

framework-crates/objc2-local-authentication/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ visionos = "1.0"
99

1010
# Uses defines
1111
enum.LABiometryType.use-value = true
12-
enum.LABiometryType.constants.LABiometryNone.use-value = false
12+
const.LABiometryNone.use-value = false
1313
enum.LACompanionType.use-value = true
1414
enum.LAPolicy.use-value = true
1515
enum.LACredentialType.use-value = true

framework-crates/objc2-pass-kit/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ watchos = "2.0"
1313
visionos = "1.0"
1414

1515
# Defined as `~(NSUInteger)0`, which leads header-translator to assume that `NSUInteger` is a macro.
16-
enum.PKPassType.constants.PKPassTypeAny.skipped = true
16+
const.PKPassTypeAny.skipped = true
1717

1818
# PKPassRelevantDate.h isn't included in the umbrella `PassKit.h`, which makes it invisible to modules.
1919
#

framework-crates/objc2-security-interface/translation-config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ required-crates = ["objc2", "objc2-foundation", "objc2-app-kit"]
55
macos = "10.3"
66

77
# Uses NSCancelButton and NSOKButton, which are skipped in AppKit.
8-
enum.SFButtonType.constants.SFButtonTypeCancel.use-value = true
9-
enum.SFButtonType.constants.SFButtonTypeOK.use-value = true
8+
const.SFButtonTypeCancel.use-value = true
9+
const.SFButtonTypeOK.use-value = true

framework-crates/objc2-security/translation-config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ static.oidSubjectInfoAccess.skipped = true
139139
static.oidSubjectKeyIdentifier.skipped = true
140140

141141
# References parent enum SecuritySessionId, which is hard to handle
142-
enum.anonymous.constants.callerSecuritySession.use-value = true
142+
const.callerSecuritySession.use-value = true
143143

144144
# There's a bunch of constants in cssmtype that need casts (e.g.
145145
# CSSM_WORDID_VENDOR_START from i32 to CSSM_WORDID_KEYCHAIN_PROMPT which is
146146
# u32). So let's just emit all constants directly for now.
147-
enum.anonymous.use-value = true
147+
enum.__anonymous__.use-value = true
148148

149149
# Manually re-defined: see #711.
150150
fn.AuthorizationExecuteWithPrivileges.skipped = true

framework-crates/objc2-tv-ml-kit/translation-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tvos = "9.0"
77
external.AVPlayer.module = "AVFoundation.AVPlayer"
88

99
# Swift renames this to "none", so we do too.
10-
enum.TVElementUpdateType.constants.TVElementUpdateTypeSelf.skipped = true
10+
const.TVElementUpdateTypeSelf.skipped = true
1111

1212
# FIXME: Make header-translator pick this up from the explicit protocol impl.
1313
class.TVBrowserTransitionAnimator.main-thread-only = true

framework-crates/objc2-ui-kit/translation-config.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ class.UIImage.skipped-protocols = ["UIItemProviderPresentationSizeProviding", "U
7878
class.NSTextAttachment.skipped-protocols = ["UIAccessibilityContentSizeCategoryImageAdjusting"]
7979

8080
# Type defaults to `c_int`, but value is `NSInteger`
81-
enum.anonymous.constants.NSControlCharacterZeroAdvancementAction.use-value = true
82-
enum.anonymous.constants.NSControlCharacterWhitespaceAction.use-value = true
83-
enum.anonymous.constants.NSControlCharacterHorizontalTabAction.use-value = true
84-
enum.anonymous.constants.NSControlCharacterLineBreakAction.use-value = true
85-
enum.anonymous.constants.NSControlCharacterParagraphBreakAction.use-value = true
86-
enum.anonymous.constants.NSControlCharacterContainerBreakAction.use-value = true
81+
const.NSControlCharacterZeroAdvancementAction.use-value = true
82+
const.NSControlCharacterWhitespaceAction.use-value = true
83+
const.NSControlCharacterHorizontalTabAction.use-value = true
84+
const.NSControlCharacterLineBreakAction.use-value = true
85+
const.NSControlCharacterParagraphBreakAction.use-value = true
86+
const.NSControlCharacterContainerBreakAction.use-value = true
8787

8888
# Typedef to an enum, which our values handle wrong
8989
typedef.UITextWritingDirection.skipped = true

0 commit comments

Comments
 (0)