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


   > :    (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


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