From dcebf9c7f954a55350b68d0ead1935612c4e2e05 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Thu, 15 Oct 2026 13:04:01 +0300 Subject: Rename the library to wsap_vtcore ncurses installs and defines struct term. In a file that includes both headers, an ncurses TERMINAL * and this library's terminal are silently the same type. The name wsap_vtcore avoids the clash. The public header is now . Every global symbol uses the wsap_vtcore_ prefix, every macro uses WSAP_VTCORE_, and the shared library is libwsap_vtcore.so.0. The default terminal name is now "wsap_vtcore". The ISA override variable is WSAP_VTCORE_ISA. No other behavior changes. The amalgamation writes wsap_vtcore.c and wsap_vtcore.h. Co-Authored-By: Claude Haiku 5.5 --- tests/header_test.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/header_test.sh') diff --git a/tests/header_test.sh b/tests/header_test.sh index 9fd1041..299a950 100644 --- a/tests/header_test.sh +++ b/tests/header_test.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# A host includes and nothing else. The package puts only the -# parent of term/ on the include path. The headers compile alone as strict +# A host includes and nothing else. The package puts only the +# parent of wsap_vtcore/ on the include path. The headers compile alone as strict # C11 and as C++. set -euo pipefail cd "${1:-$(dirname "$0")/..}" @@ -22,18 +22,18 @@ check() { fi } -check term.h <<'EOF' -#include +check wsap_vtcore.h <<'EOF' +#include EOF # Apple headers define wide before a host includes the Unicode API. check "unicode/width.h: conflicts with host types" <<'EOF' typedef struct wide { int value; } wide; -#include +#include EOF -# A host that uses the names the Unicode API had before the term_ and -# TERM_ prefixes. The API must not clash with them in either order. +# A host that uses the names the Unicode API had before the wsap_vtcore_ and +# WSAP_VTCORE_ prefixes. The API must not clash with them in either order. check "unicode API: host names declared first" <<'EOF' int unicode_width(int); static int in_ranges; @@ -45,9 +45,9 @@ struct unicode_range { int lo; }; #define IN_TABLE 1 #define UNICODE_DATA_VERSION "host" #define UTF_8_H -#include -#include -#include +#include +#include +#include int host_use(void) { return in_ranges + zero_width + utf8d + unicode_width(1) + UTF8_ACCEPT + GRAPHEME_MAX_LEN; @@ -55,9 +55,9 @@ int host_use(void) EOF check "unicode API: host names declared after" <<'EOF' -#include -#include -#include +#include +#include +#include int unicode_width(int); static int in_ranges; #define UTF8_ACCEPT 7 -- cgit v1.2.3