Re: [rfa] save space by using enum bitfields

Michael Elizabeth Chastain
2003-08-19T19:42:16Z

For people tracking patches:

This patch is withdrawn for rework. It was drawing a gcc
warning about an enum definition nested in a struct definition.

Seems like this is fine:

struct s { enum e { one, two, three } e1; };

But this is not:

struct s { enum e { one, two, three }; enum e e1; };

So I gotta refactor:

enum e { one, two, three };
struct s { enum e e1; };

Michael C

===

2003-08-17 Michael Chastain <mec@shout.net>

* defs.h (ENUM_BITFIELD): New macro.
* symtab.h (ENUM_BITFIELD): Use it.
(BYTE_BITFIELD): Remove old macro, which was already disabled.