From: Johan Rydberg <johan.rydberg@netinsight.se>
To: cgen@sources.redhat.com
Subject: enums
Date: Wed, 06 Dec 2000 00:30:00 -0000 [thread overview]
Message-ID: <3A2DF94D.908E4C45@netinsight.se> (raw)
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
next reply other threads:[~2000-12-06 0:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-06 0:30 Johan Rydberg [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A2DF94D.908E4C45@netinsight.se \
--to=johan.rydberg@netinsight.se \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).