• Enums and Ints
    Bug, or just weird subtlety of ANSI C when it comes to enums and ints? typedef enum { es16_1, es16_2, es16_3, es16_Force16 = 0x7fff } EnumS16; typedef enum { eu16_1, eu16_2, eu16_3, eu16_Force16...
  • #if & #error giving C322 Error - enum not defined?
    Hi Here is the code I have problems with I an just starting to use this C compiler Have used many others, mainly closer to C99 #define Num_LANGUAGEs 6 enum _LANGUAGE { eUSING_LAN_START =...
  • 8bit enums
    Hello everyone, I'm using some enums and due to the standard they are 16bit int per default. But in most of my cases 8bit would be sufficient and I'm not loaded with free RAM. I found that the compiler...
  • enum question
    These code snippets come from a Dhrystone test we are using to evaluate ARM MDK and some ARM devices. The program works well but I have run across a construct that I do not understand. I hope some of...
  • enum external declaration and use
    Hi Folks, I am trying to use enum to define a set of named constants with values so that they can be used by multiple C files in my project. For example. I use the following snipet to define Months...