From ce388b4ee44f0b656fdcc61fb8007f35b2c5d3af Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Tue, 8 Jul 2025 10:24:31 +0200 Subject: [PATCH] Cleanup --- tools/xtchain.h | 56 ------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/tools/xtchain.h b/tools/xtchain.h index be7e22f..5aa9822 100644 --- a/tools/xtchain.h +++ b/tools/xtchain.h @@ -7,57 +7,13 @@ * Rafal Kupiec */ -#ifdef UNICODE -#define _UNICODE -#endif - -#include #include #include #include #include -#include #define _T(x) x -#ifdef _UNICODE -#define TS "%ls" -#else -#define TS "%s" -#endif - -static -inline -int -_tcsicmp(const char *a, - const char *b) -{ - while(*a && tolower(*a) == tolower(*b)) - { - a++; - b++; - } - - return *a - *b; -} - -static -inline -char * -concat(const char *prefix, - const char *suffix) -{ - int prefixlen = strlen(prefix); - int suffixlen = strlen(suffix); - - char *buf = malloc((prefixlen + suffixlen + 1) * sizeof(*buf)); - - strcpy(buf, prefix); - strcpy(buf + prefixlen, suffix); - - return buf; -} - static inline char * @@ -148,15 +104,3 @@ split_argv(const char *argv0, *exe_ptr = exe; } } - -static -inline -int -run_final(const char *executable, - const char *const *argv) -{ - execvp(executable, (char **) argv); - perror(executable); - - return 1; -}