This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: enums


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]