From 2eb890bde31495cdd90423fcfbc789351ca56ec6 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Tue, 17 Feb 2026 10:22:16 -0500 Subject: 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 Reviewed-by: Quim Muntal LUCI-TryBot-Result: Go LUCI --- src/runtime/testdata/testwinlibthrow/veh.c | 52 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/runtime/testdata/testwinlibthrow') 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 - -__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 + +__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); + } +} -- cgit v1.3