This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: enums
- To: Johan Rydberg <johan dot rydberg at netinsight dot se>
- Subject: Re: enums
- From: Ben Elliston <bje at redhat dot com>
- Date: Wed, 6 Dec 2000 22:34:55 +1100 (EST)
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, <cgen at sources dot redhat dot com>
> : (values ("RESET") ("BUSERR" -) ("DPF" -) ("IPF" -)
> : ("EXTINT" -) ("ALIGN" -) ("ILLEGAL" -) ("PEINT" -)
> : ("DTLBMISS" -) ("ITLBMISS" -) ("RRANGE" -)
> : ("SYSCALL" -) ("BREAK" -) ("RESERVED" -))
> Is this intentional? Why define the others with value "-" ?
Well, first i defined it like: ("RESET" #x100) ("BUFFER" #x200) And
that didn't work at all. All the "-" values is just the result of a
search-and-replace.
In other contexts, an enum value can be:
(values "RESET" "BUSERR" "DPF" ..)
Does that work?
Ben