From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frank Ch. Eigler" To: Johan Rydberg Cc: cgen@sources.redhat.com Subject: Re: enums Date: Wed, 06 Dec 2000 03:16:00 -0000 Message-id: <20001206061648.A1107@redhat.com> References: <3A2DF94D.908E4C45@netinsight.se> X-SW-Source: 2000-q4/msg00236.html 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 -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6LiAgVZbdDOm/ZT0RAliYAJ0VfN82yiOF9Q53Is/g/RcjnFQ5gwCeO3qk 1CthDqyB1BSPI/WolUqcUz0= =KGcc -----END PGP SIGNATURE-----