From: Paul Eggert Date: Thu, 12 Aug 2004 08:09:42 +0000 (+0000) Subject: getopt, argp fixes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6165f57e23cd70ddb61fc5dbf76afb55fa656e8e;p=pspp getopt, argp fixes. --- diff --git a/ChangeLog b/ChangeLog index 3e595e6d71..9dbd8585f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2004-08-12 Paul Eggert + + * modules/argp (Files): Add m4/unlocked-io.m4. + (Depends-on): Add extensions. + +2004-08-12 Simon Josefsson + + * modules/getopt (Files): Rename getopt.h to getopt_.h. + (Makefile.am): Rewrite, use logic from argz. + (Include): Use instead of "getopt.h". + 2004-08-11 Paul Eggert * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4, diff --git a/config/ChangeLog b/config/ChangeLog index 98807860a9..cda64db1f9 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2004-08-12 Paul Eggert + + * srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h), + getopt1.c. + 2004-06-22 Paul Eggert * srclist-update: Don't insist on "USA." before the close-comment, diff --git a/lib/ChangeLog b/lib/ChangeLog index 44f736a17d..251ee6ec63 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,25 @@ +2004-08-12 Paul Eggert + + * argp-help.c, argp-parse.c: Use "gettext.h" instead of + its complicated substitute. + * argp-help.c: Include , 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 + + * getopt.c, getopt1.c: Remove ELIDE_CODE hack. + * getopt_.h: Renamed from getopt.h. + 2004-08-11 Paul Eggert Merge from coreutils. diff --git a/m4/ChangeLog b/m4/ChangeLog index f7fb4243cb..aaa3285b43 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,23 @@ +2004-08-12 Paul Eggert + + * 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 + + * getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro, + as discussed with Paul Eggert in threads rooted at + + and + . + 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 Merge from coreutils.