
Originally Posted by
maxcy
I have a compiler error about converting an int to enum. (scanner3) scanner1 shows where the error occurs trying to convert an int to a TOKEN_CODE(yellow) at the end of the initialization list. I think the NULL, 0 at the end of the enum list was a kind of end marker. scanner2 shows the enum typedef for the TOKEN_CODE enum. I guess this could be done with older c compilers. I kind of remember that one could use int indexes into an enum, but I'm not sure about this idea. How do I get around this mess?
maxcy