# HG changeset patch # User Paul Eggert # Date 1084857520 0 # Node ID 1407b63897fd165f7c97e02de2d5e21d8299be58 # Parent a2cb70e482fc0e97464520d4bd227a1885316a99 Simplify argp by assuming alloca module. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Derek R. Price + Paul Eggert + + * modules/argp: Depend on alloca. + 2004-05-16 Paul Eggert * modules/getdate: Depend on alloca. diff --git a/config/ChangeLog b/config/ChangeLog --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Paul Eggert + + * srclist.txt: Break link for argp-help.c and argp-parse.c until + we can get this patch merged into glibc. + 2004-04-21 Karl Berry * srclist.txt (localcharset.c): break sync. diff --git a/config/srclist.txt b/config/srclist.txt --- a/config/srclist.txt +++ b/config/srclist.txt @@ -1,4 +1,4 @@ -# $Id: srclist.txt,v 1.37 2004-04-21 12:53:26 karl Exp $ +# $Id: srclist.txt,v 1.38 2004-05-18 05:18:41 eggert Exp $ # Files for which we are not the source. See ./srclistvars.sh for the # variable definitions. @@ -80,9 +80,11 @@ $LIBCSRC/argp/argp-fmtstream.c lib gpl $LIBCSRC/argp/argp-fmtstream.h lib gpl $LIBCSRC/argp/argp-fs-xinl.c lib gpl -$LIBCSRC/argp/argp-help.c lib gpl +# Currently not quite the same, due to alloca-related patch in gnulib. +#$LIBCSRC/argp/argp-help.c lib gpl $LIBCSRC/argp/argp-namefrob.h lib gpl -$LIBCSRC/argp/argp-parse.c lib gpl +# Currently not quite the same, due to alloca-related patch in gnulib. +#$LIBCSRC/argp/argp-parse.c lib gpl $LIBCSRC/argp/argp-pv.c lib gpl $LIBCSRC/argp/argp-pvh.c lib gpl $LIBCSRC/argp/argp-xinl.c lib gpl diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Derek R. Price + Paul Eggert + + * argp-help.c, argp-parse.c: Assume rather than freecoding. + 2004-05-14 Bruno Haible * vasnprintf.c (VASNPRINTF): Correctly handle the case of a precision diff --git a/lib/argp-help.c b/lib/argp-help.c --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -25,21 +25,7 @@ #include #endif -/* AIX requires this to be the first thing in the file. */ -#ifndef __GNUC__ -# if HAVE_ALLOCA_H || defined _LIBC -# include -# else -# ifdef _AIX -#pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -#endif - +#include #include #include #include diff --git a/lib/argp-parse.c b/lib/argp-parse.c --- a/lib/argp-parse.c +++ b/lib/argp-parse.c @@ -21,21 +21,7 @@ #include #endif -/* AIX requires this to be the first thing in the file. */ -#ifndef __GNUC__ -# if HAVE_ALLOCA_H || defined _LIBC -# include -# else -# ifdef _AIX -#pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -#endif - +#include #include #include #include diff --git a/m4/ChangeLog b/m4/ChangeLog --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Derek R. Price + Paul Eggert + + * argp: Depend on alloca. + 2004-05-16 Paul Eggert * alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always, diff --git a/modules/argp b/modules/argp --- a/modules/argp +++ b/modules/argp @@ -17,6 +17,7 @@ m4/argp.m4 Depends-on: +alloca getopt strchrnul sysexits