From 315bd501ca696bc3e3c938b4604d8dac7a6f512f Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 16 Jul 2010 14:47:02 +0300 Subject: Move to gawk 3.1.5. --- regex.c | 38 ++++++++------------------------------ 1 file changed, 8 insertions(+), 30 deletions(-) (limited to 'regex.c') diff --git a/regex.c b/regex.c index bf63f2ec..7ea28deb 100644 --- a/regex.c +++ b/regex.c @@ -15,37 +15,13 @@ You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef _AIX -#pragma alloca -#else -# ifndef allocax /* predefined by HP cc +Olibcalls */ -# ifdef __GNUC__ -# define alloca(size) __builtin_alloca (size) -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef __hpux - void *alloca (); -# else -# if !defined __OS2__ && !defined WIN32 - char *alloca (); -# else -# include /* OS/2 defines alloca in here */ -# endif -# endif -# endif -# endif -# endif -#endif - #ifdef _LIBC /* We have to keep the namespace clean. */ # define regfree(preg) __regfree (preg) @@ -71,19 +47,21 @@ # include "../locale/localeinfo.h" #endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - +#ifdef HAVE_SYS_TYPES_H /* POSIX says that must be included (by the caller) before . */ #include +#endif #if defined (_MSC_VER) #include /* for size_t */ #endif +/* On some systems, limits.h sets RE_DUP_MAX to a lower value than + GNU regex allows. Include it before , which correctly + #undefs RE_DUP_MAX and sets it to the right value. */ #include + #include #include "regex_internal.h" -- cgit v1.2.3