lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] #if can't use enum vaule ETHARP_STATE_EMPTY


From: Kieran Mansley
Subject: Re: [lwip-devel] #if can't use enum vaule ETHARP_STATE_EMPTY
Date: Tue, 04 Mar 2008 13:36:14 +0000

On Fri, 2008-02-15 at 15:08 +0000, Jonathan Larmour wrote:
> Bill Auerbach wrote:
> >Kieran wrote:
> >> Anyone know why we couldn't just do:
> >>
> >> enum etharp_state {
> >> /* "ETHARP_STATE_EMPTY must be 0 to ensure correct initialization
> >> value!" */
> >>  ETHARP_STATE_EMPTY = 0,
> >>  ETHARP_STATE_PENDING,
> >>  ETHARP_STATE_STABLE
> >> };
> >>
> >> i.e. force it to be zero?  I'm never sure if such things are supported
> >> on all compilers.
> > 
> > This is standard enum syntax and will work everywhere.
> 
> Indeed, I was about to say the same :). It's standard C.

Right, so I've made this change and will check in for 1.3.0

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]