@@ -41,10 +41,9 @@ struct TypeLayout;
41
41
// / \param payload - type metadata for the payload case of the enum.
42
42
// / \param emptyCases - the number of empty cases in the enum.
43
43
SWIFT_RUNTIME_EXPORT
44
- extern " C" void swift_initEnumValueWitnessTableSinglePayload (
45
- ValueWitnessTable *vwtable,
46
- const TypeLayout *payload,
47
- unsigned emptyCases);
44
+ void swift_initEnumValueWitnessTableSinglePayload (ValueWitnessTable *vwtable,
45
+ const TypeLayout *payload,
46
+ unsigned emptyCases);
48
47
49
48
// / \brief Faster variant of the above which avoids digging into the enum type
50
49
// / metadata when the caller already has the payload information handy.
@@ -57,9 +56,9 @@ extern "C" void swift_initEnumValueWitnessTableSinglePayload(
57
56
// / returns a value greater than or equal to zero and less than
58
57
// / emptyCases.
59
58
SWIFT_RT_ENTRY_VISIBILITY
60
- extern " C " int swift_getEnumCaseSinglePayload (const OpaqueValue *value,
61
- const Metadata *payload,
62
- unsigned emptyCases)
59
+ int swift_getEnumCaseSinglePayload (const OpaqueValue *value,
60
+ const Metadata *payload,
61
+ unsigned emptyCases)
63
62
SWIFT_CC(RegisterPreservingCC);
64
63
65
64
@@ -76,19 +75,19 @@ extern "C" int swift_getEnumCaseSinglePayload(const OpaqueValue *value,
76
75
// / than emptyCases for an empty case.
77
76
// / \param emptyCases - the number of empty cases in the enum.
78
77
SWIFT_RT_ENTRY_VISIBILITY
79
- extern " C " void swift_storeEnumTagSinglePayload (OpaqueValue *value,
80
- const Metadata *payload,
81
- int whichCase,
82
- unsigned emptyCases)
78
+ void swift_storeEnumTagSinglePayload (OpaqueValue *value,
79
+ const Metadata *payload,
80
+ int whichCase,
81
+ unsigned emptyCases)
83
82
SWIFT_CC(RegisterPreservingCC);
84
83
85
84
// / \brief Initialize the value witness table for a generic, multi-payload
86
85
// / enum instance.
87
86
SWIFT_RUNTIME_EXPORT
88
- extern " C " void swift_initEnumMetadataMultiPayload (ValueWitnessTable *vwtable,
89
- EnumMetadata *enumType,
90
- unsigned numPayloads,
91
- const TypeLayout * const *payloadTypes);
87
+ void swift_initEnumMetadataMultiPayload (ValueWitnessTable *vwtable,
88
+ EnumMetadata *enumType,
89
+ unsigned numPayloads,
90
+ const TypeLayout * const *payloadTypes);
92
91
93
92
// / \brief Return an integer value representing which case of a multi-payload
94
93
// / enum is inhabited.
@@ -98,15 +97,15 @@ extern "C" void swift_initEnumMetadataMultiPayload(ValueWitnessTable *vwtable,
98
97
// /
99
98
// / \returns The index of the enum case.
100
99
SWIFT_RUNTIME_EXPORT
101
- extern " C " unsigned swift_getEnumCaseMultiPayload (const OpaqueValue *value,
102
- const EnumMetadata *enumType);
100
+ unsigned swift_getEnumCaseMultiPayload (const OpaqueValue *value,
101
+ const EnumMetadata *enumType);
103
102
104
103
// / \brief Store the tag value for the given case into a multi-payload enum,
105
104
// / whose associated payload (if any) has already been initialized.
106
105
SWIFT_RUNTIME_EXPORT
107
- extern " C " void swift_storeEnumTagMultiPayload (OpaqueValue *value,
108
- const EnumMetadata *enumType,
109
- unsigned whichCase);
106
+ void swift_storeEnumTagMultiPayload (OpaqueValue *value,
107
+ const EnumMetadata *enumType,
108
+ unsigned whichCase);
110
109
111
110
}
112
111
0 commit comments