public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* enums
@ 2000-12-06  0:30 Johan Rydberg
  2000-12-06  3:16 ` enums Frank Ch. Eigler
  0 siblings, 1 reply; 9+ messages in thread
From: Johan Rydberg @ 2000-12-06  0:30 UTC (permalink / raw)
  To: cgen

Hi!

I define an enum like this:

 (define-enum
   (name e-exception)
   (comment "exception vectors")
   ()
   (prefix E_)
   (values ("RESET") ("BUSERR" -) ("DPF" -) ("IPF" -) 
           ("EXTINT" -) ("ALIGN" -) ("ILLEGAL" -) ("PEINT" -)
           ("DTLBMISS" -) ("ITLBMISS" -) ("RRANGE" -) 
           ("SYSCALL" -) ("BREAK" -) ("RESERVED" -))
 )

And the result in the "desc.h" file:

  /* Enum declaration for exception vectors.  */
  typedef enum e_exception {
    E_RESET
  } E_EXCEPTION;

As you can tell, all enums but the first one is left out.
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: ()

Have I missed something as usual?

-- 
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-12-07  6:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-06  0:30 enums Johan Rydberg
2000-12-06  3:16 ` enums Frank Ch. Eigler
2000-12-06  3:23   ` enums Johan Rydberg
2000-12-06  3:35     ` enums Ben Elliston
2000-12-06  3:38       ` enums Johan Rydberg
2000-12-06  8:55     ` enums Doug Evans
2000-12-06  9:06       ` enums Johan Rydberg
2000-12-06  9:28         ` enums Doug Evans
2000-12-07  6:33           ` enums Johan Rydberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).