From 517300e567f2aab2572e8a432cfd133e214704f1 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 16 Jan 2025 21:41:26 +0200 Subject: [PATCH] Windows: static-method-only .c files to .h --- src/builtins/sysfn.c | 6 +++--- src/utils/file.c | 4 ++-- src/windows/{sh.c => sh.h} | 0 src/windows/{utf16.c => utf16.h} | 0 src/windows/{winError.c => winError.h} | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename src/windows/{sh.c => sh.h} (100%) rename src/windows/{utf16.c => utf16.h} (100%) rename src/windows/{winError.c => winError.h} (100%) diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index e3851fba..392aa518 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -1153,9 +1153,9 @@ static i32 sh_core(bool raw, B x, usz xia, B inObj, u64 iLen, B* s_outp, B* s_er } #elif defined(_WIN32) || defined(_WIN64) #define HAS_SH 1 -#include "../windows/winError.c" -#include "../windows/utf16.c" -#include "../windows/sh.c" +#include "../windows/winError.h" +#include "../windows/utf16.h" +#include "../windows/sh.h" static i32 sh_core(bool raw, B x, usz xia, B inObj, u64 iLen, B* s_outp, B* s_errp) { // allocate args diff --git a/src/utils/file.c b/src/utils/file.c index f60cd4bc..92306fc0 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -8,7 +8,7 @@ #if defined(_WIN32) #include - #include "../windows/utf16.c" + #include "../windows/utf16.h" // use wide char functions for unicode support / longer paths (potentially) #include "../windows/realpath.c" #endif @@ -297,7 +297,7 @@ B path_list(B path) { #include #else #include -#include "../windows/winError.c" +#include "../windows/winError.h" #endif typedef struct MmapHolder { diff --git a/src/windows/sh.c b/src/windows/sh.h similarity index 100% rename from src/windows/sh.c rename to src/windows/sh.h diff --git a/src/windows/utf16.c b/src/windows/utf16.h similarity index 100% rename from src/windows/utf16.c rename to src/windows/utf16.h diff --git a/src/windows/winError.c b/src/windows/winError.h similarity index 100% rename from src/windows/winError.c rename to src/windows/winError.h