I have some code that I'm trying to port using StormC 4. It compiles for the most part, but I get litterally thousands of warnings about multi-character character constants. What I have is basically somthing like this:
enum
{
JOHN_NAME = 'john',
FRED_NAME = 'fred',
MIKE_NAME = 'mike',
ANNE_NAME = 'anne'
}
I gather that since enums are 4 byte integers each character in the character constant is supposed to be copied to the corresponding byte in the enum. So you have essentially an array of 4 bytes that is cast as an int.
Is there any other way to express this that would avoid giving me so many warnings and errors?
Thanks,