From da33a1a3c6fad279d65135633e183e484bb41bd7 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Fri, 9 Jan 2026 14:45:12 -0700 Subject: [PATCH] darwin: remove invalid characters --- include/Mw/LowLevel/AppKit.h | 2 +- include/Mw/MachDep.h | 2 +- pl/ostype/Linux.pl | 2 +- src/abstract/time.c | 14 +++++++------- src/backend/appkit.m | 14 +++++++------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/include/Mw/LowLevel/AppKit.h b/include/Mw/LowLevel/AppKit.h index 985cf5f..4a6c8e5 100644 --- a/include/Mw/LowLevel/AppKit.h +++ b/include/Mw/LowLevel/AppKit.h @@ -8,7 +8,7 @@ #include #include -#include  +#include MWDECL int MwLLAppKitCallInit(void); diff --git a/include/Mw/MachDep.h b/include/Mw/MachDep.h index 1fe1549..c8cb060 100644 --- a/include/Mw/MachDep.h +++ b/include/Mw/MachDep.h @@ -43,7 +43,7 @@ #include #include #include -#include  +#include #include #endif diff --git a/pl/ostype/Linux.pl b/pl/ostype/Linux.pl index b7e074d..155cd4a 100644 --- a/pl/ostype/Linux.pl +++ b/pl/ostype/Linux.pl @@ -1,4 +1,4 @@ -IF (param_get("experimental-wayland")) { +if (param_get("experimental-wayland")) { use_backend("wayland", "x11"); } else { diff --git a/src/abstract/time.c b/src/abstract/time.c index 97e6fb3..2fbc584 100644 --- a/src/abstract/time.c +++ b/src/abstract/time.c @@ -1,8 +1,8 @@ -#include  +#include #if defined(_WIN32) long MwTimeGetTick(void) { - return GetTickCount(); + return GetTickCount(); } void MwTimeSleep(int ms) { @@ -12,13 +12,13 @@ void MwTimeSleep(int ms) { long MwTimeGetTick(void) { struct timespec ts; long n = 0; - clock_serv_t cclock; + clock_serv_t cclock; mach_timespec_t mts; - + host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), cclock); - + n += ts.tv_nsec / 1000 / 1000; n += ts.tv_sec * 1000; @@ -36,12 +36,12 @@ void MwTimeSleep(int ms) { long MwTimeGetTick(void) { struct timespec ts; long n = 0; - + clock_gettime(CLOCK_MONOTONIC, &ts); n += ts.tv_nsec / 1000 / 1000; n += ts.tv_sec * 1000; - + return n; } diff --git a/src/backend/appkit.m b/src/backend/appkit.m index 772f33a..6deea7c 100644 --- a/src/backend/appkit.m +++ b/src/backend/appkit.m @@ -1,4 +1,4 @@ -#include  +#include #include "../../external/stb_ds.h" @@ -8,9 +8,9 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { (void)y; (void)width; (void)height; - + r = malloc(sizeof(*r)); - + MwLLCreateCommon(r); @@ -19,7 +19,7 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { static void MwLLDestroyImpl(MwLL handle) { MwLLDestroyCommon(handle); - + free(handle); } @@ -51,7 +51,7 @@ static MwLLColor MwLLAllocColorImpl(MwLL handle, int r, int g, int b) { static void MwLLColorUpdateImpl(MwLL handle, MwLLColor c, int r, int g, int b) { (void)handle; - + c->common.red = r; c->common.green = g; c->common.blue = b; @@ -96,7 +96,7 @@ static void MwLLSetTitleImpl(MwLL handle, const char* title) { static MwLLPixmap MwLLCreatePixmapImpl(MwLL handle, unsigned char* data, int width, int height) { (void)handle; - + MwLLPixmap r = malloc(sizeof(*r)); r->common.raw = malloc(4 * width * height); @@ -206,7 +206,7 @@ static void MwLLEndStateChangeImpl(MwLL handle) { MwLLShow(handle, 1); } -static int AppKit(void) { +static int MwLLAppKitCallInitImpl(void) { return 0; }