|
25 | 25 | SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
|
26 | 26 | SWIFT_BEGIN_ASSUME_NONNULL
|
27 | 27 |
|
28 |
| -typedef long SwiftInt; |
29 |
| -typedef unsigned long SwiftUInt; |
| 28 | +typedef long long SwiftInt; |
| 29 | +typedef unsigned long long SwiftUInt; |
30 | 30 |
|
31 | 31 | typedef struct {
|
32 | 32 | const unsigned char *_Nullable data;
|
33 |
| - long length; |
| 33 | + size_t length; |
34 | 34 | } BridgedString;
|
35 | 35 |
|
36 | 36 | typedef struct {
|
37 | 37 | const void *_Nullable data;
|
38 |
| - long numElements; |
| 38 | + size_t numElements; |
39 | 39 | } BridgedArrayRef;
|
40 | 40 |
|
41 | 41 | typedef struct BridgedASTContext {
|
@@ -113,7 +113,7 @@ typedef struct BridgedDiagnosticEngine {
|
113 | 113 | void *raw;
|
114 | 114 | } BridgedDiagnosticEngine;
|
115 | 115 |
|
116 |
| -typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedMacroDefinitionKind : long { |
| 116 | +typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedMacroDefinitionKind : size_t { |
117 | 117 | /// An expanded macro.
|
118 | 118 | BridgedExpandedMacro = 0,
|
119 | 119 | /// An external macro, spelled with either the old spelling (Module.Type)
|
@@ -307,7 +307,7 @@ void *IfStmt_create(BridgedASTContext cContext, BridgedSourceLoc cIfLoc,
|
307 | 307 | void *BraceStmt_create(BridgedASTContext cContext, BridgedSourceLoc cLBLoc,
|
308 | 308 | BridgedArrayRef elements, BridgedSourceLoc cRBLoc);
|
309 | 309 |
|
310 |
| -BridgedSourceLoc SourceLoc_advanced(BridgedSourceLoc cLoc, long len); |
| 310 | +BridgedSourceLoc SourceLoc_advanced(BridgedSourceLoc cLoc, size_t len); |
311 | 311 |
|
312 | 312 | void *ParamDecl_create(BridgedASTContext cContext, BridgedSourceLoc cLoc,
|
313 | 313 | BridgedSourceLoc cArgLoc, BridgedIdentifier argName,
|
@@ -357,7 +357,7 @@ void *GenericTypeParamDecl_create(BridgedASTContext cContext,
|
357 | 357 | BridgedDeclContext cDeclContext,
|
358 | 358 | BridgedIdentifier name,
|
359 | 359 | BridgedSourceLoc cNameLoc,
|
360 |
| - BridgedSourceLoc cEachLoc, long index, |
| 360 | + BridgedSourceLoc cEachLoc, size_t index, |
361 | 361 | _Bool isParameterPack);
|
362 | 362 | void GenericTypeParamDecl_setInheritedType(BridgedASTContext cContext,
|
363 | 363 | void *Param, void *ty);
|
|
0 commit comments