[cc65] enum size

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2009-10-19 02:04:23
Just a thing I came to think of, when I was messing around with bit
fields. Wouldn't it be possible to reduce the size of enums?

To concretize the discussion...

typedef struct {
    enum { Foo, Bar } my_enum;
    int bit : 1;
} MyStruct;

...sizeof(MyStruct) is now 3. Shouldn't it be possible to reduce this
to 2 or even 1?

Sorry if this has been discussed earlier.

Regards,
Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 19 02:04:48 2009

This archive was generated by hypermail 2.1.8 : 2009-10-19 02:04:50 CEST