[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Beta release of gawk 3.1.6 now available
From: |
Aharon Robbins |
Subject: |
Re: Beta release of gawk 3.1.6 now available |
Date: |
Wed, 26 Sep 2007 14:37:01 +0200 |
Greetings. I have applied the patch below. It's available from the gawk
CVS repository. Thanks!
Arnold
> Date: Thu, 31 May 2007 14:55:34 +0900
> From: KIMURA Koichi <address@hidden>
> Subject: Re: Beta release of gawk 3.1.6 now available
> To: address@hidden
>
> Hi,
>
> I have tried to build a gawk 3.1.6beta on my Window box.
> Then to build, I need a some patches as here.
>
> I am sorry, but there was no time and I did not check the behavior
> on multibyte locale.
>
> thanks,
>
> --- pc/config.h.orig 2007-05-21 11:46:38.000000000 +0900
> +++ pc/config.h 2007-05-31 14:14:13.668500000 +0900
> @@ -536,6 +536,12 @@
> #if defined(WIN32) && defined(_MSC_VER)
> #define alloca _alloca
> #define system(s) os_system(s)
> +/* VC++ dosen't supprt restrict keyword */
> +#define restrict
> +/* VC++ have tmpfile */
> +#define HAVE_TMPFILE
> +/* sys/time.h is not exist in VC++? */
> +#undef TIME_WITH_SYS_TIME
> #endif
>
> #if defined(__MINGW32__)
>
> --- awk.h.orig 2007-05-18 22:25:40.000000000 +0900
> +++ awk.h 2007-05-31 10:00:36.449750000 +0900
> @@ -102,6 +102,11 @@ extern int errno;
> # include <stdint.h>
> #endif
>
> +#if defined(_MSC_VER)
> +/* for read()/close() in use replace.c */
> +#include <io.h>
> +#endif
> +
> /* ----------------- System dependencies (with more includes) -----------*/
>
> /* This section is the messiest one in the file, not a lot that can be done
> */
>
> --- regex_internal.h.orig 2007-04-30 04:57:01.000000000 +0900
> +++ regex_internal.h 2007-05-31 10:00:14.356000000 +0900
> @@ -439,12 +439,17 @@ static unsigned int re_string_context_at
>
> #ifndef _LIBC
> # if HAVE_ALLOCA
> -# include <alloca.h>
> +# if (_MSC_VER)
> +# include <malloc.h>
> +# define __libc_use_alloca(n) 0
> +# else
> +# 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
>
>
>
> --
> KIMURA Koichi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Beta release of gawk 3.1.6 now available,
Aharon Robbins <=