25
25
SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
26
26
SWIFT_BEGIN_ASSUME_NONNULL
27
27
28
- typedef long SwiftInt ;
29
- typedef unsigned long SwiftUInt ;
30
-
31
28
typedef struct {
32
29
const unsigned char * _Nullable data ;
33
- long length ;
30
+ SwiftInt length ;
34
31
} BridgedString ;
35
32
36
33
typedef struct {
37
34
const void * _Nullable data ;
38
- long numElements ;
35
+ SwiftInt numElements ;
39
36
} BridgedArrayRef ;
40
37
41
38
typedef struct BridgedASTContext {
@@ -70,7 +67,7 @@ typedef struct {
70
67
BridgedSourceLoc TrailingCommaLoc ;
71
68
} BridgedTupleTypeElement ;
72
69
73
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedRequirementReprKind : long {
70
+ typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedRequirementReprKind : SwiftInt {
74
71
/// A type bound T : P, where T is a type that depends on a generic
75
72
/// parameter and P is some type that should bound T, either as a concrete
76
73
/// supertype or a protocol to which T must conform.
@@ -97,7 +94,7 @@ typedef struct {
97
94
} BridgedRequirementRepr ;
98
95
99
96
/// Diagnostic severity when reporting diagnostics.
100
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedDiagnosticSeverity : long {
97
+ typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedDiagnosticSeverity : SwiftInt {
101
98
BridgedFatalError ,
102
99
BridgedError ,
103
100
BridgedWarning ,
@@ -113,7 +110,7 @@ typedef struct BridgedDiagnosticEngine {
113
110
void * raw ;
114
111
} BridgedDiagnosticEngine ;
115
112
116
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedMacroDefinitionKind : long {
113
+ typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedMacroDefinitionKind : SwiftInt {
117
114
/// An expanded macro.
118
115
BridgedExpandedMacro = 0 ,
119
116
/// An external macro, spelled with either the old spelling (Module.Type)
@@ -124,7 +121,7 @@ typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedMacroDefinitionKind : long {
124
121
} BridgedMacroDefinitionKind ;
125
122
126
123
/// Bridged parameter specifiers
127
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedAttributedTypeSpecifier : long {
124
+ typedef enum ENUM_EXTENSIBILITY_ATTR (open ) BridgedAttributedTypeSpecifier : SwiftInt {
128
125
BridgedAttributedTypeSpecifierInOut ,
129
126
BridgedAttributedTypeSpecifierBorrowing ,
130
127
BridgedAttributedTypeSpecifierConsuming ,
@@ -135,7 +132,7 @@ typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedAttributedTypeSpecifier : long
135
132
} BridgedAttributedTypeSpecifier ;
136
133
137
134
// Bridged type attribute kinds, which mirror TypeAttrKind exactly.
138
- typedef enum ENUM_EXTENSIBILITY_ATTR (closed ) BridgedTypeAttrKind : long {
135
+ typedef enum ENUM_EXTENSIBILITY_ATTR (closed ) BridgedTypeAttrKind : SwiftInt {
139
136
BridgedTypeAttrKind_autoclosure ,
140
137
BridgedTypeAttrKind_convention ,
141
138
BridgedTypeAttrKind_noescape ,
@@ -187,7 +184,7 @@ typedef enum ENUM_EXTENSIBILITY_ATTR(closed) BridgedTypeAttrKind : long {
187
184
BridgedTypeAttrKind_Count
188
185
} BridgedTypeAttrKind ;
189
186
190
- typedef enum ENUM_EXTENSIBILITY_ATTR (open ) ASTNodeKind : long {
187
+ typedef enum ENUM_EXTENSIBILITY_ATTR (open ) ASTNodeKind : SwiftInt {
191
188
ASTNodeKindExpr ,
192
189
ASTNodeKindStmt ,
193
190
ASTNodeKindDecl
@@ -307,7 +304,7 @@ void *IfStmt_create(BridgedASTContext cContext, BridgedSourceLoc cIfLoc,
307
304
void * BraceStmt_create (BridgedASTContext cContext , BridgedSourceLoc cLBLoc ,
308
305
BridgedArrayRef elements , BridgedSourceLoc cRBLoc );
309
306
310
- BridgedSourceLoc SourceLoc_advanced (BridgedSourceLoc cLoc , long len );
307
+ BridgedSourceLoc SourceLoc_advanced (BridgedSourceLoc cLoc , SwiftInt len );
311
308
312
309
void * ParamDecl_create (BridgedASTContext cContext , BridgedSourceLoc cLoc ,
313
310
BridgedSourceLoc cArgLoc , BridgedIdentifier argName ,
@@ -357,7 +354,7 @@ void *GenericTypeParamDecl_create(BridgedASTContext cContext,
357
354
BridgedDeclContext cDeclContext ,
358
355
BridgedIdentifier name ,
359
356
BridgedSourceLoc cNameLoc ,
360
- BridgedSourceLoc cEachLoc , long index ,
357
+ BridgedSourceLoc cEachLoc , SwiftInt index ,
361
358
_Bool isParameterPack );
362
359
void GenericTypeParamDecl_setInheritedType (BridgedASTContext cContext ,
363
360
void * Param , void * ty );
0 commit comments