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: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Wed, 6 Dec 2000 06:16:49 -0500
- Cc: cgen at sources dot redhat dot com
- References: <3A2DF94D.908E4C45@netinsight.se>
Hi -
On Wed, Dec 06, 2000 at 09:31:09AM +0100, Johan Rydberg wrote:
: [...]
: I define an enum like this:
: [...]
: (values ("RESET") ("BUSERR" -) ("DPF" -) ("IPF" -)
: ("EXTINT" -) ("ALIGN" -) ("ILLEGAL" -) ("PEINT" -)
: ("DTLBMISS" -) ("ITLBMISS" -) ("RRANGE" -)
: ("SYSCALL" -) ("BREAK" -) ("RESERVED" -))
: [...]
: As you can tell, all enums but the first one is left out.
Is this intentional? Why define the others with value "-" ?
: And if I define the values like this,
:
: (values ("RESET" #x100) ("BUSERR" -) ("DPF" -) ("IPF" -)
: ("EXTINT" -) ("ALIGN" -) ("ILLEGAL" -) ("PEINT" -)
: ("DTLBMISS" -) ("ITLBMISS" -) ("RRANGE" -)
: ("SYSCALL" -) ("BREAK" -) ("RESERVED" -))
:
: I get the following message for CGEN:
: ERROR: In procedure caar:
: ERROR: Wrong type argument in position 1: ()
Just a bug. Could you try running cgen with error backtracing?
(CGENFLAGS="-b"; works for guile 1.3.*)
- FChE
PGP signature