diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 18:57:06 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-28 18:57:06 -0600 |
| commit | 7ecdc5efc90cd0f983764997fb17da6928b908fa (patch) | |
| tree | 582a776ea6445a69aa2a9524244e567a86a60c6a /.github/workflows | |
| parent | 0922e0b31b3a476c250d8677fb76fdf2d542723e (diff) | |
| download | whoson-fix/c-programming-standards.tar.gz | |
Follow C-PROGRAMMING-STANDARDS.md throughoutfix/c-programming-standards
The standards document that merged as PR #25 is now the reference for the
language level, the diagnostics, the names and the comments. What the
audit found and this commit settles:
- C23 in full: nullptr instead of NULL, static_assert for every offset the
walk reads, constexpr for the buffer and column widths, and the one
compiler attribute wrapped in PRINTFLIKE so call sites stay C23.
- -Wstrict-prototypes and -Wmissing-prototypes, which the document requires
and the Makefile did not carry.
- Lower-case constexpr names, and static so each stays internal.
- A Doxygen block on every function, type, global and macro, and /**< */ on
every member, as section 3.3 asks.
- -D_OPEN_SYS_FILE_EXT=1, the value the document names, in the Makefile and
in .clangd.
- make format and make tidy, the two target names the document gives.
- The eye-catcher hex, the CHTRKID value and the EBCDIC reasoning now carry
the why in a comment rather than standing bare.
Where the document and this program disagree, the program keeps its reason
and CONTRIBUTING.md records the agreement where it is not obvious.
Also fixes the wall of undecodable bytes after `make check`: the runtime's
own storage report, and the one the ps child inherits, are EBCDIC text
written to an ASCII log. An untagged stdout or stderr is now tagged
ISO8859-1 before anything writes to it, so both reports arrive as text.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions
