summaryrefslogtreecommitdiff
path: root/docs/correctness-audit.md
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 13:04:01 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 13:04:01 +0300
commitdcebf9c7f954a55350b68d0ead1935612c4e2e05 (patch)
tree3eb3e9f6154c6760bcb89a565f8ddc8f8b66cb90 /docs/correctness-audit.md
parentbd8222e615134c3ec5e7a07b6b1fa97c9bd4a471 (diff)
Rename the library to wsap_vtcore
ncurses installs <term.h> 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 <wsap_vtcore/wsap_vtcore.h>. 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 <noreply@anthropic.com>
Diffstat (limited to 'docs/correctness-audit.md')
-rw-r--r--docs/correctness-audit.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/correctness-audit.md b/docs/correctness-audit.md
index dd854a1..0326d1b 100644
--- a/docs/correctness-audit.md
+++ b/docs/correctness-audit.md
@@ -16,7 +16,8 @@ meson setup build-audit --buildtype=debug -Db_lto=false \
-Db_sanitize=address,undefined -Dkitty=disabled
meson compile -C build-audit -j 4
cc -std=c11 -g -UNDEBUG -fsanitize=address,undefined \
- -Iinclude/term -Isrc tests/correctness_probe.c build-audit/src/libterm.a \
+ -Iinclude/wsap_vtcore -Isrc tests/correctness_probe.c \
+ build-audit/src/libwsap_vtcore.a \
-Wl,--wrap=realloc -Wl,--wrap=calloc -lm -o build-audit/correctness-probe
ASAN_OPTIONS=detect_leaks=0 build-audit/correctness-probe
```
@@ -69,7 +70,7 @@ threshold, independently of how many lines have scrolled past it.
### Failed height shrink changes terminal state
-In `src/screen.c`, `term_resize_internal()` scrolls and adjusts the cursor
+In `src/screen.c`, `wsap_vtcore_resize_internal()` scrolls and adjusts the cursor
before allocating the replacement screen. If that allocation fails, it
returns false after changing the terminal, violating the documented promise
that a failed resize leaves it unchanged.