Skip to content

Commit e8499b4

Browse files
committed
Remove cppreference.com links from public docs (not actually an official language standard)
1 parent 60d45d2 commit e8499b4

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

Sources/Testing/ExitTests/ExitTest.Condition.swift

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ extension ExitTest.Condition {
6060
/// A condition that matches when a process terminates successfully with exit
6161
/// code `EXIT_SUCCESS`.
6262
///
63-
/// The C programming language defines two [standard exit codes](https://en.cppreference.com/w/c/program/EXIT_status),
64-
/// `EXIT_SUCCESS` and `EXIT_FAILURE` as well as `0` (as a synonym for
65-
/// `EXIT_SUCCESS`.)
66-
///
6763
/// @Metadata {
6864
/// @Available(Swift, introduced: 6.2)
6965
/// }
@@ -102,9 +98,9 @@ extension ExitTest.Condition {
10298
/// - Parameters:
10399
/// - exitCode: The exit code yielded by the process.
104100
///
105-
/// The C programming language defines two [standard exit codes](https://en.cppreference.com/w/c/program/EXIT_status),
106-
/// `EXIT_SUCCESS` and `EXIT_FAILURE`. Platforms may additionally define their
107-
/// own non-standard exit codes:
101+
/// The C programming language defines two standard exit codes, `EXIT_SUCCESS`
102+
/// and `EXIT_FAILURE`. Platforms may additionally define their own
103+
/// non-standard exit codes:
108104
///
109105
/// | Platform | Header |
110106
/// |-|-|
@@ -114,6 +110,11 @@ extension ExitTest.Condition {
114110
/// | OpenBSD | [`<stdlib.h>`](https://man.openbsd.org/exit.3), [`<sysexits.h>`](https://man.openbsd.org/sysexits.3) |
115111
/// | Windows | [`<stdlib.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/exit-success-exit-failure) |
116112
///
113+
/// @Comment {
114+
/// See https://en.cppreference.com/w/c/program/EXIT_status for more
115+
/// information about exit codes defined by the C standard.
116+
/// }
117+
///
117118
/// On macOS, FreeBSD, OpenBSD, and Windows, the full exit code reported by
118119
/// the process is yielded to the parent process. Linux and other POSIX-like
119120
/// systems may only reliably report the low unsigned 8 bits (0&ndash;255) of
@@ -136,8 +137,8 @@ extension ExitTest.Condition {
136137
/// - Parameters:
137138
/// - signal: The signal that terminated the process.
138139
///
139-
/// The C programming language defines a number of [standard signals](https://en.cppreference.com/w/c/program/SIG_types).
140-
/// Platforms may additionally define their own non-standard signal codes:
140+
/// The C programming language defines a number of standard signals. Platforms
141+
/// may additionally define their own non-standard signal codes:
141142
///
142143
/// | Platform | Header |
143144
/// |-|-|
@@ -147,6 +148,11 @@ extension ExitTest.Condition {
147148
/// | OpenBSD | [`<signal.h>`](https://man.openbsd.org/signal.3) |
148149
/// | Windows | [`<signal.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/signal-constants) |
149150
///
151+
/// @Comment {
152+
/// See https://en.cppreference.com/w/c/program/SIG_types for more
153+
/// information about signals defined by the C standard.
154+
/// }
155+
///
150156
/// @Metadata {
151157
/// @Available(Swift, introduced: 6.2)
152158
/// }

Sources/Testing/ExitTests/StatusAtExit.swift

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public enum StatusAtExit: Sendable {
3131
/// - Parameters:
3232
/// - exitCode: The exit code yielded by the process.
3333
///
34-
/// The C programming language defines two [standard exit codes](https://en.cppreference.com/w/c/program/EXIT_status),
35-
/// `EXIT_SUCCESS` and `EXIT_FAILURE`. Platforms may additionally define their
36-
/// own non-standard exit codes:
34+
/// The C programming language defines two standard exit codes, `EXIT_SUCCESS`
35+
/// and `EXIT_FAILURE`. Platforms may additionally define their own
36+
/// non-standard exit codes:
3737
///
3838
/// | Platform | Header |
3939
/// |-|-|
@@ -43,6 +43,11 @@ public enum StatusAtExit: Sendable {
4343
/// | OpenBSD | [`<stdlib.h>`](https://man.openbsd.org/exit.3), [`<sysexits.h>`](https://man.openbsd.org/sysexits.3) |
4444
/// | Windows | [`<stdlib.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/exit-success-exit-failure) |
4545
///
46+
/// @Comment {
47+
/// See https://en.cppreference.com/w/c/program/EXIT_status for more
48+
/// information about exit codes defined by the C standard.
49+
/// }
50+
///
4651
/// On macOS, FreeBSD, OpenBSD, and Windows, the full exit code reported by
4752
/// the process is yielded to the parent process. Linux and other POSIX-like
4853
/// systems may only reliably report the low unsigned 8 bits (0&ndash;255) of
@@ -58,8 +63,8 @@ public enum StatusAtExit: Sendable {
5863
/// - Parameters:
5964
/// - signal: The signal that terminated the process.
6065
///
61-
/// The C programming language defines a number of [standard signals](https://en.cppreference.com/w/c/program/SIG_types).
62-
/// Platforms may additionally define their own non-standard signal codes:
66+
/// The C programming language defines a number of standard signals. Platforms
67+
/// may additionally define their own non-standard signal codes:
6368
///
6469
/// | Platform | Header |
6570
/// |-|-|
@@ -69,6 +74,11 @@ public enum StatusAtExit: Sendable {
6974
/// | OpenBSD | [`<signal.h>`](https://man.openbsd.org/signal.3) |
7075
/// | Windows | [`<signal.h>`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/signal-constants) |
7176
///
77+
/// @Comment {
78+
/// See https://en.cppreference.com/w/c/program/SIG_types for more
79+
/// information about signals defined by the C standard.
80+
/// }
81+
///
7282
/// @Metadata {
7383
/// @Available(Swift, introduced: 6.2)
7484
/// }

0 commit comments

Comments
 (0)