]> Savannah Git Hosting - gnulib.git/commit
error: don’t call ‘exit’
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 May 2023 21:38:41 +0000 (14:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 May 2023 21:39:27 +0000 (14:39 -0700)
commit47811d1ac24e38e8842dc37e2e3cd3b4120338ad
tree3ceb99aba33ebbd0d9d41464698e8205ec4cec76
parent8b21ff255996a518244a5635e36ea58e21f818be
error: don’t call ‘exit’

Let the underlying functions call ‘exit’, instead of having the
Gnulib replacement macros do it.  Use ‘unreachable’ to tell the
compiler that those functions exit when the status is nonzero.
This saves a function call.
* lib/error.in.h: Include stddef.h, not stdlib.h.
(__gl_error_call): Rely on the function to exit, using
‘unreachable’ to tell the compiler that the function does not return.
* modules/error (Depends-on): Add stddef.
ChangeLog
lib/error.in.h
modules/error