From: Eric Blake Date: Wed, 8 Sep 2010 15:23:03 +0000 (-0600) Subject: docs: update alloca recommendations X-Git-Tag: v2.68~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10883c0df120d6faf7436fd088930f549b8a963;p=thirdparty%2Fautoconf.git docs: update alloca recommendations * doc/autoconf.texi (Particular Functions): Don't redeclare alloca on FreeBSD. * THANKS: Update. Reported by Giorgos Keramidas. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index c874eabe5..5edb50c47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-09-08 Eric Blake + docs: update alloca recommendations + * doc/autoconf.texi (Particular Functions): Don't redeclare alloca + on FreeBSD. + * THANKS: Update. + Reported by Giorgos Keramidas. + docs: link to GNU Coding Standards in intro * doc/autoconf.texi (Introduction): Actually link to the standards. Make other references consistent. diff --git a/THANKS b/THANKS index 675d6d9c3..286201b33 100644 --- a/THANKS +++ b/THANKS @@ -139,6 +139,7 @@ Gary V. Vaughan gvaughan@oranda.demon.co.uk Geir Ove Myhr myhr@stud.fim.ntnu.no Gerrit P. Haase gp@familiehaase.de Gideon Go gideon.go@gmail.com +Giorgos Keramidas gkeramidas@gmail.com Giuseppe Guerrini guisguerrini@racine.ra.it Glenn P. Davis davis@unidata.ucar.edu Godmar Back gback@cs.utah.edu diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 99054c596..acc26871e 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4816,6 +4816,14 @@ like the following, to declare it properly. @example @group +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ @@ -4826,11 +4834,12 @@ like the following, to declare it properly. # include # define alloca _alloca #else -# include -# ifdef __cplusplus +# ifndef HAVE_ALLOCA +# ifdef __cplusplus extern "C" -# endif +# endif void *alloca (size_t); +# endif #endif @end group @end example