[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] recur.c compile error
From: |
Tim Rühsen |
Subject: |
Re: [Bug-wget] recur.c compile error |
Date: |
Sat, 15 Aug 2015 11:53:51 +0200 |
User-agent: |
KMail/4.14.2 (Linux/4.1.0-1-amd64; KDE/4.14.2; x86_64; ; ) |
Am Samstag, 15. August 2015, 18:59:30 schrieb Jookia:
> On Sat, Aug 15, 2015 at 10:39:01AM +0200, Tim Rühsen wrote:
> > Am Samstag, 15. August 2015, 12:15:46 schrieb Darshit Shah:
> > > On Sat, Aug 15, 2015 at 1:33 AM, Gisle Vanem <address@hidden> wrote:
> > > > The new reject stuff in recur.c:
> > > > typedef enum
> > > > {
> > > >
> > > > SUCCESS, BLACKLIST, NOTHTTPS, NONHTTP, 1, 1, PARENT, LIST, REGEX,
> > > > RULES, SPANNEDHOST, ROBOTS
> > > >
> > > > } reject_reason;
> > > >
> > > > causes errors with MSVC and MingW since in:
> > > > math.h:952: #define DOMAIN _DOMAIN i.e. 1
> > > > wingdi.h:1893: #define ABSOLUTE 1
> > > >
> > > > <math.h> is pulled in via some Gnulib headers. And <wingdi.h> via
> > > > <windows.h>. I suggest this simple fix:
> > > >
> > > > --- a/src/recur.c 2015-08-14 21:45:44
> > > > +++ b/src/recur.c 2015-08-14 21:54:45
> > > > @@ -182,6 +182,9 @@
> > > >
> > > > return ret;
> > > >
> > > > }
> > > >
> > > > +#undef ABSOLUTE
> > > > +#undef DOMAIN
> > > > +
> > > >
> > > > typedef enum
> > > > {
> > > >
> > > > SUCCESS, BLACKLIST, NOTHTTPS, NONHTTP, ABSOLUTE, DOMAIN, PARENT,
> > > > LIST,
> > > >
> > > > REGEX,
> > >
> > > I think this is an ugly solution.
> > >
> > > > Or better names for the enumerations; 'RR_xx' ?
> > >
> > > This is much better. We should rename our constants to something like
> > > WG_*.
> >
> > ACK.
> >
> > Maybe WG_RR_* ?
>
> This looks like it's turning out to be a refactor as well. There's precedent
> for other structs having prefixes, so perhaps find the ones that don't and
> prefix them similiarly? In this situation it'd be RR_*.
Hi, please consider answering to the mailing list, so anybody can follow what
is going on.
In the first step only reject_reason has to be fixed.
Tim
signature.asc
Description: This is a digitally signed message part.