Mercurial > hg > octave-nkf > gnulib-hg
changeset 5197:53db84a8853e
getopt, argp fixes.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 12 Aug 2004 08:09:42 +0000 |
parents | de3f03d25188 |
children | 9317c9ebe82c |
files | ChangeLog config/ChangeLog lib/ChangeLog m4/ChangeLog |
diffstat | 4 files changed, 58 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-08-12 Paul Eggert <eggert@cs.ucla.edu> + + * modules/argp (Files): Add m4/unlocked-io.m4. + (Depends-on): Add extensions. + +2004-08-12 Simon Josefsson <jas@extundo.com> + + * modules/getopt (Files): Rename getopt.h to getopt_.h. + (Makefile.am): Rewrite, use logic from argz. + (Include): Use <getopt.h> instead of "getopt.h". + 2004-08-11 Paul Eggert <eggert@cs.ucla.edu> * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
--- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2004-08-12 Paul Eggert <eggert@cs.ucla.edu> + + * srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h), + getopt1.c. + 2004-06-22 Paul Eggert <eggert@cs.ucla.edu> * srclist-update: Don't insist on "USA." before the close-comment,
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,25 @@ +2004-08-12 Paul Eggert <eggert@cs.ucla.edu> + + * argp-help.c, argp-parse.c: Use "gettext.h" instead of + its complicated substitute. + * argp-help.c: Include <errno.h>, for program_invocation_short_name + and program_invocation_name. + (__argp_basename) [!_LIBC]: Remove; the only use was + replaced by its body. + (__argp_short_program_name): Change condition from + !defined __argp_short_program_name to + ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME), + to match argp-namefrob.h. + (__argp_failure): Don't assume strerror_r returns char *. + * argp-parse.c (N_): Define unconditionally. + (argp_default_options): Fill out initializers with 0 to avoid + gcc warnings. + +2004-08-12 Simon Josefsson <jas@extundo.com> + + * getopt.c, getopt1.c: Remove ELIDE_CODE hack. + * getopt_.h: Renamed from getopt.h. + 2004-08-11 Paul Eggert <eggert@cs.ucla.edu> Merge from coreutils.
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,23 @@ +2004-08-12 Paul Eggert <eggert@cs.ucla.edu> + + * argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody + uses HAVE_ARGP_H or HAVE_ARGP_PARSE. + Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS. + Check for program_invocation_name, program_invocation_short_name, + flockfile, funlockfile, features.h, _getopt_long_only_r. + +2004-08-12 Simon Josefsson <jas@extundo.com> + + * getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro, + as discussed with Paul Eggert in threads rooted at + <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html> + and + <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>. + Before, the test was empty, and relied on ELIDE_CODE in source + code.) + (gl_PREREQ_GETOPT): New macro. + (gl_GETOPT): Use them. + 2004-08-11 Paul Eggert <eggert@cs.ucla.edu> Merge from coreutils.