df: prefer xpalloc to xnrealloc
commitc52553997d20d749d8d7409c9fcb624c4e9c306a
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Nov 2024 06:45:32 +0000 (7 22:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (8 23:41 -0800)
tree54f858aef49fb5abeacc992d95ab7e23f498aca4
parentd00ab4d1106d81b9299c96ec4ec50d9f17172a2d
df: prefer xpalloc to xnrealloc

* src/df.c (ncolumns, nrows, print_table, get_header, get_dev):
Prefer idx_t to size_t for sizes related to xpalloc.
(ncolumns_alloc, nrows_alloc): New static vars.
(alloc_table_row, alloc_field): Prefer xpalloc to xnrealloc.
src/df.c