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 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- #include <stdio.h>
14
-
15
- extern FILE * const swb_stdout ();
16
- extern FILE * const swb_stderr ();
17
-
18
13
#if defined(__linux__ ) && !defined(__ANDROID__ )
19
14
#include <fcntl.h>
20
15
#include <fnmatch.h>
Original file line number Diff line number Diff line change @@ -18,22 +18,3 @@ int swb_clibc_anchor(void);
18
18
int swb_clibc_anchor (void ) {
19
19
return 0 ;
20
20
}
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? {
65
65
return Static . regex. matchGroups ( in: string) . first ? [ 0 ]
66
66
}
67
67
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
-
98
68
#if canImport(Darwin)
99
69
public import func Foundation. autoreleasepool
100
70
#endif
You can’t perform that action at this time.
0 commit comments