Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Code cleanup in ZLE bindings
- X-seq: zsh-workers 1035
- From: Richard_Ohnemus@xxxxxxxxxxxxxxxx (Richard Ohnemus)
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: Code cleanup in ZLE bindings
- Date: Wed, 8 May 1996 21:01:11 -0500 (CDT)
- In-reply-to: <10017.199605090037@xxxxxxxxxxxxxxxxxxxxxxx> from Zefram at "May 9, 96 01:27:10 am"
> >I think enum is not supported by all compilers. There is no enum in the
> >original K&R C. Please send this patch again leaving the #define's (or
> >convince me that enum is supported by all C compilers on all Unix systems).
>
> When I learned C, there was no ANSI standard, but there was most
> definitely enum. I remember using it in VAX C in about 1988 -- that
> was basically K&R C plus void. When I first read K&R, it was the first
> edition, and enum was there.
>
The first edition of K&R, published in 1978, doesn't have enum as part of the
language. However, "The C Programmer's Handbook" published by Bell Labs in
1985 has enum. Also, the second edition of K&R, published in 1988, has this
little note (middle of page 215 in my copy): 'Enumerations are new since the
first edition of this book, but have been part of the language for some
years.'
I've used many different C compilers and it has been a long time since I've
seen one that doesn't support enumerations. So, I think it is safe to use
enum unless someone can document that enum is not supported by a compiler
on a system that is currently supported by zsh.
--
Richard J. Ohnemus (Richard_Ohnemus@xxxxxxxxxxxxxxxx) (214) 868-5411
Sterling Commerce CSG
5215 North O'Connor Boulevard, Suite 1500
Irving, Texas 75039-3771
Messages sorted by:
Reverse Date,
Date,
Thread,
Author