summary refs log tree commit diff
path: root/port/wcwidth/wcswidth.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-16 18:35:56 -0400
committerJune McEnroe <june@causal.agency>2022-03-16 18:37:31 -0400
commit1fa27a5aae9fdf6f4044f9d365aed38d216c8601 (patch)
tree640d2313c9aa06555f48b90b369d6229a1c4e7c9 /port/wcwidth/wcswidth.c
parentRemove -j4 from ./Plan (diff)
downloadsrc-1fa27a5aae9fdf6f4044f9d365aed38d216c8601.tar.gz
src-1fa27a5aae9fdf6f4044f9d365aed38d216c8601.zip
Remove wcwidth port
DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this
approach doesn't work anymore. Moved to
<https://git.causal.agency/jorts/tree/wcwidth> and compiled into
<https://git.causal.agency/jorts/tree/ncurses>.
Diffstat (limited to '')
-rw-r--r--port/wcwidth/wcswidth.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/port/wcwidth/wcswidth.c b/port/wcwidth/wcswidth.c
deleted file mode 100644
index 5c8a5a4d..00000000
--- a/port/wcwidth/wcswidth.c
+++ /dev/null
@@ -1,8 +0,0 @@
-#include <wchar.h>
-
-int wcswidth(const wchar_t *wcs, size_t n)
-{
-	int l=0, k=0;
-	for (; n-- && *wcs && (k = wcwidth(*wcs)) >= 0; l+=k, wcs++);
-	return (k < 0) ? k : l;
-}