maint: factor out common macros of stat and printf
commitf069bb710a7c68a33b63f989526e228a4a342b44
authorNikolay Nechaev <Nikolay_Nechaev@mail.ru>
Sun, 5 May 2024 09:54:59 +0000 (5 12:54 +0300)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 May 2024 16:50:22 +0000 (5 17:50 +0100)
tree408589a3edaec6b1b8aaf922a01196450fe2b487
parent292cf895453e22d79e321521bda1d74f27070e25
maint: factor out common macros of stat and printf

* src/octhexdigits.h: isodigit, hextobin, octtobin macros.
* src/stat.c, src/printf.c: Use octhexdigits.h.
* src/local.mk: Corresponding adjustments.
src/local.mk
src/octhexdigits.h [new file with mode: 0644]
src/printf.c
src/stat.c