diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-12-18 20:29:22 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-12-18 20:29:22 +0200 |
commit | bd52c816f95a6aec471f194b94c2e195cf7f9988 (patch) | |
tree | 95afa5c273355441df78fdf1aeaa69d078945159 /regex_internal.h | |
parent | dd4d686a4181448171114d6fc6f4f8ae58394e16 (diff) | |
download | egawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.tar.gz egawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.tar.bz2 egawk-bd52c816f95a6aec471f194b94c2e195cf7f9988.zip |
Cleanup the mainline PC code, and pc/ directory.
Diffstat (limited to 'regex_internal.h')
-rw-r--r-- | regex_internal.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/regex_internal.h b/regex_internal.h index 4184d7f5..f87d336d 100644 --- a/regex_internal.h +++ b/regex_internal.h @@ -454,17 +454,12 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx, #ifndef _LIBC # if HAVE_ALLOCA -# if (_MSC_VER) -# include <malloc.h> -# define __libc_use_alloca(n) 0 -# else -# include <alloca.h> +# include <alloca.h> /* The OS usually guarantees only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely allocate anything larger than 4096 bytes. Also care for the possibility of a few compiler-allocated temporary stack slots. */ # define __libc_use_alloca(n) ((n) < 4032) -# endif # else /* alloca is implemented with malloc, so just use malloc. */ # define __libc_use_alloca(n) 0 |