avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] avrdude on Windows


From: Joerg Wunsch
Subject: Re: [avrdude-dev] avrdude on Windows
Date: Thu, 13 Feb 2003 20:53:57 +0100
User-agent: Mutt/1.2.5i

As E. Weddington wrote:

> > enum {
> >   PPIDATA,
> >   PPICTRL,
> >   PPISTATUS
> > };
> > 
> 
> Suggestion:
> 
> enum {
>   PPIDATA = 0,
>   PPICTRL = 1,
>   PPISTATUS = 2
> };

Per definitionem, that's the same.

``Semantics
...
3 The identifiers in an enumerator list are declared as constants that
  have type int and may appear wherever such are permitted.107) An
  enumerator with = defines its enumeration constant as the value of
  the constant expression. If the first enumerator has no =, the value
  of its enumeration constant is 0. Each subsequent enumerator with no
  = defines its enumeration constant as the value of the constant
  expression obtained by adding 1 to the value of the previous
  enumeration constant.''

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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