From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id LAA19785 for ; Thu, 9 May 1996 11:38:09 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id VAA23470; Wed, 8 May 1996 21:26:47 -0400 (EDT) Resent-Date: Wed, 8 May 1996 21:26:47 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960508182743.ZM23449@candle.brasslantern.com> Date: Wed, 8 May 1996 18:27:42 -0700 In-Reply-To: Zoltan Hidvegi "Re: Code cleanup in ZLE bindings" (May 9, 12:55am) References: <199605082255.AAA00392@hzoli.ppp.cs.elte.hu> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (3.3dev.424 24apr96) To: Zoltan Hidvegi , zsh-workers@math.gatech.edu Subject: Re: Code cleanup in ZLE bindings MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"v6aUk1.0.ek5.NdKan"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1033 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On May 9, 12:55am, Zoltan Hidvegi wrote: } Subject: Re: Code cleanup in ZLE bindings } } 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). We build Z-Mail on 23 different Unix platforms (more if you count different version numbers of the same OS). Every one of them has enum. I've built or been in contact with people who built the mail user's shell (Mush) on Xenix, AT&T 3b2, and even some sort of SVR2 machine. They all had enum, too. What some of them don't have is the extension that permits you to assign specific int values to the members of the enum type. Others of them won't permit you to use enum in place of int as an array index, without an explicit cast. This is the only gotcha I'd be worried about for zsh purposes. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern