]> git.ipfire.org Git - thirdparty/coreutils.git/commit
expand: refactor to introduce ‘colno’
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Nov 2024 01:56:15 +0000 (17:56 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (23:41 -0800)
commite4edd48a2a1bbe4fd09c1fbc0330d00861ac93d5
tree7c81d2d8dcdd0bfdb5b120106782feabaa23cfce
parent97807bff17e1ea55bd72176923ddcc197693cf1a
expand: refactor to introduce ‘colno’

* src/expand-common.h (colno): New typedef.
All uses of uintmax_t for column numbers replaced by colno.
* src/expand-common.c (add_tab_stop): Use xpalloc
instead of X2NREALLOC, and use ckd_add to check for overflow.
src/expand-common.c
src/expand-common.h
src/unexpand.c