lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev C enums (was: Saner mouse in lynx with ncurses)


From: Klaus Weide
Subject: lynx-dev C enums (was: Saner mouse in lynx with ncurses)
Date: Wed, 25 Nov 1998 05:56:41 -0600 (CST)

On Wed, 25 Nov 1998, Larry W. Virden wrote:

> From: address@hidden
> >> Just as a matter of programming style, would this not be better implemented
> >> as an enum?
> >
> >maybe/maybe not - storing enum values as int's doesn't always work well
> >on older compilers (which Lynx builds on).  If I saw it as an enum, I'd
> >have to take that into consideration.
> 
> The other thing is that, sad to say, enum's just do not give you any
> advantage in C.  In general, C doesn't do any kind of error checking for
> enums, so it turns out to be the equivalent of defines anyways.

I find them helpful for debugging; gdb shows the symbol when possible.

    Klaus
  

reply via email to

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