D
Dave
I have several enums that are generated by a code generator (and I have
no control over the code generator), the problem is that the names are
pretty long
enum VeryLoooooooongEnumName
{
veryLoooooooooong1,
veryLoooooooooong2,
......
veryLoooooooooong10
};
Some old code I'm working on would use a typedef like this:
typedef VeryLoooooooongEnumName enum ShortName { short1, short2, ... };
It used to compile using gcc 2.95, but with gcc 3.2 it no longer
compiles, the error is:
"multiple types in one declaration"
So is there a good way to typedef a enum and all its enumerators?
any help appreciated, thanks in advance
no control over the code generator), the problem is that the names are
pretty long
enum VeryLoooooooongEnumName
{
veryLoooooooooong1,
veryLoooooooooong2,
......
veryLoooooooooong10
};
Some old code I'm working on would use a typedef like this:
typedef VeryLoooooooongEnumName enum ShortName { short1, short2, ... };
It used to compile using gcc 2.95, but with gcc 3.2 it no longer
compiles, the error is:
"multiple types in one declaration"
So is there a good way to typedef a enum and all its enumerators?
any help appreciated, thanks in advance