@@ -265,7 +265,7 @@ func checkMacroDefinition(
265
265
266
266
// Form the "ModuleName.TypeName" result string.
267
267
externalMacroOutPtr. pointee =
268
- allocateBridgedString ( " \( module) . \( type) " , nullTerminated : true )
268
+ allocateBridgedString ( " \( module) . \( type) " )
269
269
270
270
// Translate this into a use of #externalMacro.
271
271
let expansionSourceSyntax : ExprSyntax =
@@ -329,14 +329,13 @@ func checkMacroDefinition(
329
329
330
330
// Form the "ModuleName.TypeName" result string.
331
331
externalMacroOutPtr. pointee =
332
- allocateBridgedString ( " \( module) . \( type) " , nullTerminated : true )
332
+ allocateBridgedString ( " \( module) . \( type) " )
333
333
return Int ( BridgedMacroDefinitionKind . externalMacro. rawValue)
334
334
335
335
case let . expansion( expansionSyntax, replacements: replacements) :
336
336
// Provide the expansion syntax.
337
337
externalMacroOutPtr. pointee =
338
- allocateBridgedString ( expansionSyntax. trimmedDescription,
339
- nullTerminated: true )
338
+ allocateBridgedString ( expansionSyntax. trimmedDescription)
340
339
341
340
342
341
// If there are no replacements, we're done.
@@ -395,7 +394,7 @@ func makeExpansionOutputResult(
395
394
outputPointer. pointee = BridgedString ( )
396
395
return - 1
397
396
}
398
- outputPointer. pointee = allocateBridgedString ( expandedSource, nullTerminated : true )
397
+ outputPointer. pointee = allocateBridgedString ( expandedSource)
399
398
return 0
400
399
}
401
400
0 commit comments