From: Paul Eggert Date: Tue, 18 May 2004 05:18:40 +0000 (+0000) Subject: Simplify argp by assuming alloca module. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc8bf912bf998e0cbb00552156cfd9dbeda6e9d1;p=pspp Simplify argp by assuming alloca module. --- diff --git a/ChangeLog b/ChangeLog index 0890404c47..f7a3044315 100644 --- 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 index 0ba81ce80f..2743513704 100644 --- 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 index 3971d89544..8d8201f13b 100644 --- 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-eexst.c lib gpl $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 index c784c8b080..f1f9c7d2a3 100644 --- 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 index 61acecd619..cdf93d4a45 100644 --- 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 index e201538bf4..0323862145 100644 --- 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 index 756df038b3..a87d3d7354 100644 --- 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 index e11d4d0171..28fa0a1267 100644 --- a/modules/argp +++ b/modules/argp @@ -17,6 +17,7 @@ lib/argp-xinl.c m4/argp.m4 Depends-on: +alloca getopt strchrnul sysexits