maint: go back to using ‘error’
commit6d61667d0d874f6af7d618221505c395b383534f
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2023 18:31:40 +0000 (1 11:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2023 18:51:16 +0000 (1 11:51 -0700)
tree6f46e831e3eb51a0db2184578833b0f05530e041
parent478055dc30b9d1565e6b577485aea824ef22b038
maint: go back to using ‘error’

Now that Gnulib’s ‘error’ module does proper static checking
for not returning, we need no longer use the ‘die’ macro.
This makes code easier to read for people that are used to ‘error’.
* cfg.mk (error_fns, exclude_file_name_regexp): Remove ‘die’.
(sc_die_EXIT_FAILURE): Remove.
* src/die.h: Remove.  All includes removed.  All calls to ‘die’
changed back to calls to ‘error’.
* src/install.c (get_ids): Use quoteaf (problem found with
make syntax-check).
* src/system.h: Include error.h, since some of our macros call ‘error’.
Stop including error.h elsewhere.
106 files changed:
cfg.mk
src/basename.c
src/basenc.c
src/cat.c
src/chcon.c
src/chgrp.c
src/chmod.c
src/chown-core.c
src/chown.c
src/chroot.c
src/cksum.c
src/comm.c
src/copy.c
src/coreutils.c
src/cp.c
src/csplit.c
src/cut.c
src/date.c
src/dd.c
src/df.c
src/die.h [deleted file]
src/digest.c
src/dircolors.c
src/dirname.c
src/du.c
src/env.c
src/expand-common.c
src/expand.c
src/expr.c
src/factor.c
src/find-mount-point.c
src/fmt.c
src/fold.c
src/group-list.c
src/groups.c
src/head.c
src/hostid.c
src/hostname.c
src/id.c
src/install.c
src/join.c
src/kill.c
src/link.c
src/ln.c
src/local.mk
src/logname.c
src/ls.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mktemp.c
src/mv.c
src/nice.c
src/nl.c
src/nohup.c
src/nproc.c
src/numfmt.c
src/od.c
src/operand2sig.c
src/paste.c
src/pathchk.c
src/pinky.c
src/pr.c
src/printf.c
src/ptx.c
src/pwd.c
src/readlink.c
src/realpath.c
src/relpath.c
src/remove.c
src/rm.c
src/rmdir.c
src/runcon.c
src/seq.c
src/set-fields.c
src/shred.c
src/shuf.c
src/sleep.c
src/sort.c
src/split.c
src/stat.c
src/stdbuf.c
src/stty.c
src/sync.c
src/system.h
src/tac-pipe.c
src/tac.c
src/tail.c
src/tee.c
src/timeout.c
src/touch.c
src/tr.c
src/truncate.c
src/tsort.c
src/tty.c
src/uname.c
src/unexpand.c
src/uniq.c
src/unlink.c
src/uptime.c
src/users.c
src/wc.c
src/wc_avx2.c
src/who.c
src/whoami.c
src/yes.c