This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func withCStrings(_ strings: [String], scoped: ([UnsafeMutablePointer<CChar>?]) throws -> Void) rethrows { | |
let cStrings = strings.map { strdup($0) } | |
try scoped(cStrings + [nil]) | |
cStrings.forEach { free($0) } | |
} | |
enum RunCommandError: Error { | |
case WaitPIDError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OVERVIEW: Swift frontend | |
USAGE: swift-frontend -frontend | |
MODES: | |
-compile-module-from-interface | |
Treat the (single) input as a swiftinterface and produce a module | |
-dump-ast Parse and type-check input file(s) and dump AST(s) | |
-dump-interface-hash Parse input file(s) and dump interface token hash(es) | |
-dump-parse Parse input file(s) and dump AST(s) |
OlderNewer