summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-09 21:07:50 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-09 21:07:50 +0000
commit3301671de97cc01bd1d751c500157fd8a7bdb887 (patch)
tree0055c15825fca238c918ce745a6f6dc16d25bdab /lib/regex.c
parentfd4a5b1b53c1154ebf24470267e5347dcaebd921 (diff)
downloadcoreutils-3301671de97cc01bd1d751c500157fd8a7bdb887.tar.xz
Import latest regex module from gnulib, to fix some 64-bit bugs.
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 99c1a8250..1bfdd6b9c 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -21,30 +21,6 @@
#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 <alloca.h>
-# else
-# ifdef __hpux
- void *alloca ();
-# else
-# if !defined __OS2__ && !defined WIN32
- char *alloca ();
-# else
-# include <malloc.h> /* 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)
@@ -70,10 +46,6 @@
# include "../locale/localeinfo.h"
#endif
-/* POSIX says that <sys/types.h> must be included (by the caller) before
- <regex.h>. */
-#include <sys/types.h>
-
/* On some systems, limits.h sets RE_DUP_MAX to a lower value than
GNU regex allows. Include it before <regex.h>, which correctly
#undefs RE_DUP_MAX and sets it to the right value. */