File tree Expand file tree Collapse file tree 3 files changed +0
-54
lines changed Expand file tree Collapse file tree 3 files changed +0
-54
lines changed Original file line number Diff line number Diff line change 1010//
1111//===----------------------------------------------------------------------===//
1212
13- #include <stdio.h>
14-
15- extern FILE * const swb_stdout ();
16- extern FILE * const swb_stderr ();
17-
1813#if defined(__linux__ ) && !defined(__ANDROID__ )
1914#include <fcntl.h>
2015#include <fnmatch.h>
Original file line number Diff line number Diff line change @@ -18,22 +18,3 @@ int swb_clibc_anchor(void);
1818int swb_clibc_anchor (void ) {
1919 return 0 ;
2020}
21-
22- #include <stdio.h>
23-
24- extern FILE * const swb_stdout ();
25- extern FILE * const swb_stderr ();
26-
27- #if defined(_WIN32 )
28- __declspec(dllexport )
29- #endif
30- FILE * const swb_stdout () {
31- return stdout ;
32- }
33-
34- #if defined(_WIN32 )
35- __declspec(dllexport )
36- #endif
37- FILE * const swb_stderr () {
38- return stderr ;
39- }
Original file line number Diff line number Diff line change @@ -65,36 +65,6 @@ public func parseUmbrellaHeaderName(_ string: String) -> String? {
6565 return Static . regex. matchGroups ( in: string) . first ? [ 0 ]
6666}
6767
68- #if os(Android)
69- public typealias FILEPointer = OpaquePointer
70- #else
71- public typealias FILEPointer = UnsafeMutablePointer < FILE >
72- #endif
73-
74- /// Adapts a FILE to a TextOutputStream. Does not own or automatically close the file.
75- public struct FILETextOutputStream : TextOutputStream {
76- let stream : FILEPointer
77-
78- public init ( _ stream: FILEPointer ) {
79- self . stream = stream
80- }
81-
82- public func write( _ string: String ) {
83- fputs ( string, stream)
84- }
85-
86- public static var stdout : Self {
87- . init( SWBLibc . swb_stdout ( ) )
88- }
89-
90- public static var stderr : Self {
91- . init( SWBLibc . swb_stderr ( ) )
92- }
93- }
94-
95- @available ( * , unavailable)
96- extension FILETextOutputStream : Sendable { }
97-
9868#if canImport(Darwin)
9969public import func Foundation. autoreleasepool
10070#endif
You can’t perform that action at this time.
0 commit comments