* NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Aug 2007 19:02:31 +0000 (19:02 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Aug 2007 19:02:31 +0000 (19:02 +0000)
commite9c57721db5e7cf2a19d93761d8c13e0c9701953
tree16dd735dc334c35c4c596b790deff1a4c46549ba
parent88cc26bbbc23e6442f2e0db8e343db5fbd1499b4
* NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
* lib/xstrtol.h: Don't include exitfail.h; that's now internal to
xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
depends on it.
(xstrtol_error): Remove.
(xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
but with a different signature.
(ATTRIBUTE_NORETURN, __attribute__): New macros.
* lib/xstrtol-error.c: Include exitfail.h.
(xstrtol_fatal): New function, with a different signature from the
old xstrtol_error, so that the caller need not worry about passing
in an exit status, or about storage management of the option argument.
(xstrtol_error): Now a static function.  Redo signature to
implement xstrtol_fatal.  Output the correct number of hyphens in
front of the option so that the caller need not worry about
storage management.
(N_): New macro.
(_): Remove; not used now.
* modules/xstrtol: Depend on getopt.
* tests/test-xstrtol.c (main): Use new xstrtol_error function instead
of old STRTOL_FATAL_ERROR macro.
* tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
of test program.
ChangeLog
NEWS
lib/xstrtol-error.c
lib/xstrtol.h
modules/xstrtol
tests/test-xstrtol.c
tests/test-xstrtol.sh