enum.cxx 497 B

1234567891011121314151617
  1. typedef enum foo_enum_e /* Sample enumeration type */
  2. {
  3. FOO_ONE, /* One fish */
  4. FOO_TWO, /* Two fish */
  5. FOO_RED, /* Red fish */
  6. FOO_BLUE, /* Blue fish */
  7. FOO_PRIVATE /* Private fish @private@ */
  8. } foo_enum_t;
  9. typedef enum foo_enum2_e /* Sample enumeration type #2 */
  10. {
  11. FOO2_ONE, /* One fish #2 */
  12. FOO2_TWO, /* Two fish #2 */
  13. FOO2_RED, /* Red fish #2 */
  14. FOO2_BLUE, /* Blue fish #2 */
  15. FOO2_PRIVATE /* Private fish #2 @private@ */
  16. } foo_enum2_t;