public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* CGEN_BITSET
@ 2009-06-20 22:39 Doug Evans
  2009-06-22 16:00 ` CGEN_BITSET Dave Brolley
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2009-06-20 22:39 UTC (permalink / raw)
  To: brolley, cgen

Treating "isa" specially is a bit of a hack.  What's the story behind 
CGEN_BITSET?

(define (gen-attr-type attr)
  (if (string=? (string-downcase (gen-sym attr)) "isa")
      "CGEN_BITSET"
      (case (attr-kind attr)
        ((boolean) "int")
        ((bitset)  "unsigned int")
        ((integer) "int")
        ((enum)    (string-append "enum " (string-downcase (gen-sym 
attr)) "_attr"))
        ))
)

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

end of thread, other threads:[~2009-06-22 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-20 22:39 CGEN_BITSET Doug Evans
2009-06-22 16:00 ` CGEN_BITSET Dave Brolley
2009-06-22 16:19   ` CGEN_BITSET Doug Evans

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).