[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32
From: |
arnold |
Subject: |
Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32) |
Date: |
Mon, 25 Jul 2011 09:05:03 GMT |
Hi.
This issue appeared for a while during gawk 4.0 development with cygwin,
but then the latest cygwin version (at least) of libsigsegv fixed it.
I'm not sure what's going on with mingw.
Eli - please submit a patch, either specific to mingw or renaming the
variable, as you like.
Libsigsegv has been more pain than gain for gawk, I have to admit.
Thanks,
Arnold
> Date: Mon, 25 Jul 2011 00:50:56 -0400
> From: Eli Zaretskii <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Subject: Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled
> (mingw32)
>
> > Date: Sun, 24 Jul 2011 15:41:43 -0700 (PDT)
> > From: address@hidden
> > Cc: address@hidden
> >
> > int lj, alt, big, bigbig, char, have_prec, need_format;
>
> The original line was this:
>
> int lj, alt, big, bigbig, small, have_prec, need_format;
>
> So it is clear that `small' got #define'd to `char', and that is what
> confuses the compiler. All the compilation errors you see are the
> consequence of this snafu.
>
> I'm quite sure that this #define comes from windows.h (included by
> sigsegv.h) or from one of the headers included by windows.h.
>
> The solution is to put this:
>
> #ifdef small
> #undef small
> #endif
>
> right after #include <sigsegv.h>.
>
> A better solution would be for builtin.c to rename this variable into
> something less general.
- Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32),
arnold <=
[bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32), Allan J Mui, 2011/07/26