@@ -265,7 +265,7 @@ func checkMacroDefinition(
265265
266266 // Form the "ModuleName.TypeName" result string.
267267 externalMacroOutPtr. pointee =
268- allocateBridgedString ( " \( module) . \( type) " , nullTerminated : true )
268+ allocateBridgedString ( " \( module) . \( type) " )
269269
270270 // Translate this into a use of #externalMacro.
271271 let expansionSourceSyntax : ExprSyntax =
@@ -329,14 +329,13 @@ func checkMacroDefinition(
329329
330330 // Form the "ModuleName.TypeName" result string.
331331 externalMacroOutPtr. pointee =
332- allocateBridgedString ( " \( module) . \( type) " , nullTerminated : true )
332+ allocateBridgedString ( " \( module) . \( type) " )
333333 return Int ( BridgedMacroDefinitionKind . externalMacro. rawValue)
334334
335335 case let . expansion( expansionSyntax, replacements: replacements) :
336336 // Provide the expansion syntax.
337337 externalMacroOutPtr. pointee =
338- allocateBridgedString ( expansionSyntax. trimmedDescription,
339- nullTerminated: true )
338+ allocateBridgedString ( expansionSyntax. trimmedDescription)
340339
341340
342341 // If there are no replacements, we're done.
@@ -395,7 +394,7 @@ func makeExpansionOutputResult(
395394 outputPointer. pointee = BridgedString ( )
396395 return - 1
397396 }
398- outputPointer. pointee = allocateBridgedString ( expandedSource, nullTerminated : true )
397+ outputPointer. pointee = allocateBridgedString ( expandedSource)
399398 return 0
400399}
401400
0 commit comments