diff options
| author | Cherry Mui <cherryyz@google.com> | 2026-02-17 10:22:16 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2026-02-17 11:58:25 -0800 |
| commit | 2eb890bde31495cdd90423fcfbc789351ca56ec6 (patch) | |
| tree | 71ff3b67df1de68bb96a4721822a5f1467747cc4 /src/runtime/testdata | |
| parent | f75c7ccaefe16a13be7ccc08731478976a6cc645 (diff) | |
| download | go-2eb890bde31495cdd90423fcfbc789351ca56ec6.tar.xz | |
all: use LF line ending for C files
For Go files, gofmt already converts CRLF line ending to LF. For C
and assembly files, we don't enforce a format, but most files in
tree are written with LF line ending, and the C toolchain can
handle them file, even on Windows. Convert all to LF line ending
for consistency.
Will look into adding a test for them.
Updates #9281.
Change-Id: Idc0dc13f0ab90b8cd8ea118abf9cb195ec438fe7
Reviewed-on: https://go-review.googlesource.com/c/go/+/746220
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testwinlibthrow/veh.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/runtime/testdata/testwinlibthrow/veh.c b/src/runtime/testdata/testwinlibthrow/veh.c index 08c1f9edf0..0ab4c03bd4 100644 --- a/src/runtime/testdata/testwinlibthrow/veh.c +++ b/src/runtime/testdata/testwinlibthrow/veh.c @@ -1,26 +1,26 @@ -//go:build ignore
-
-#include <windows.h>
-
-__declspec(dllexport)
-void RaiseNoExcept(void)
-{
- RaiseException(42, 0, 0, 0);
-}
-
-static DWORD WINAPI ThreadRaiser(void* Context)
-{
- RaiseNoExcept();
- return 0;
-}
-
-__declspec(dllexport)
-void ThreadRaiseNoExcept(void)
-{
- HANDLE thread = CreateThread(0, 0, ThreadRaiser, 0, 0, 0);
- if (0 != thread)
- {
- WaitForSingleObject(thread, INFINITE);
- CloseHandle(thread);
- }
-}
+//go:build ignore + +#include <windows.h> + +__declspec(dllexport) +void RaiseNoExcept(void) +{ + RaiseException(42, 0, 0, 0); +} + +static DWORD WINAPI ThreadRaiser(void* Context) +{ + RaiseNoExcept(); + return 0; +} + +__declspec(dllexport) +void ThreadRaiseNoExcept(void) +{ + HANDLE thread = CreateThread(0, 0, ThreadRaiser, 0, 0, 0); + if (0 != thread) + { + WaitForSingleObject(thread, INFINITE); + CloseHandle(thread); + } +} |
