diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 22:20:37 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 22:20:37 -0600 |
| commit | 5dc0edf1d1eaaa4c1f6558bbdfb895614f4bec34 (patch) | |
| tree | 8a5c650345d1f626b982ff02e01784f95546abca | |
| parent | 202bd66a5125e8159efbe1a4fd34aa229640a4ff (diff) | |
| download | ztop-5dc0edf1d1eaaa4c1f6558bbdfb895614f4bec34.tar.gz | |
make tag: retag a fresh checkout, and run the leak check on cbt
git does not carry the ISO8859-1 tag, so a checkout makes the z/OS tools
read ASCII through the EBCDIC converter. The target is one line per
source group and ignored off z/OS.
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | README.md | 9 |
2 files changed, 15 insertions, 2 deletions
@@ -54,6 +54,14 @@ TESTFLAGS = -std=c17 -g -O1 -Wall -Wextra -Wshadow -Wpedantic \ # allocated and never freed. HEAPCHK(ON) additionally walks the heap at # every call, so a double free or an overlay abends instead of hiding. +# git checkout leaves every source untagged, and the z/OS tools then read +# ASCII through the EBCDIC converter: make spins on the Makefile, sh +# rejects the script, awk reads garbage. Run this once after a checkout. +tag: + @-chtag -t -c ISO8859-1 Makefile README.md DESIGN.md tests/leakcheck.sh + @-chtag -t -c ISO8859-1 src/*.c src/*.h src/*.S tui/*.c tui/*.h + @-chtag -t -c ISO8859-1 tui/Makefile tui/test_tui.c tui/demo.c + all: @uname -s | grep OS/390 > /dev/null || \ { echo "ztop builds only on z/OS; this tree is a backup copy"; exit 1; } @@ -39,11 +39,16 @@ widgets for a viewport, a table, tabs, a text input and a status line. z/OS for the real binary, with IBM Open XL in the path: ```sh -make # ibm-clang -std=c23 -m32; the .S is assembled by HLASM -make check # storage, system and jobs +make tag # once after git checkout: tag the ASCII sources +make # ibm-clang -std=c23 -m32; the .S is assembled by HLASM +make check # storage, system and jobs make leakcheck # every mode under the LE storage and heap checks ``` +`make tag` matters because git leaves the files untagged, and the z/OS +tools then read ASCII as EBCDIC: make spins on the Makefile, `sh` rejects +the test script. + The parser, the library and `sys.c`'s structure have no z/OS dependency, so on any host with a C compiler: |
