Logo Search packages:      
Sourcecode: c2hs version File versions

enums.h

#ifndef _ENUMS_H
#define _ENUMS_H

#define STOP -1

enum colour {
  RED,
  GREEN,
  BLUE
};

enum weird {
  NUL,
  EINS = RED + 1,       /* refers to other enum */
  FIVE = 5,
  SIX,
  MINUS_ONE = STOP
};

typedef enum {
  TOP,
  BOTTOM,
  RIGHT,
  LEFT
} side;

typedef side other_side;

enum colour colourOfSide (side aside);

enum enum_net_type { NET_TYPE_TCPIP, NET_TYPE_SOCKET, NET_TYPE_NAMEDPIPE };

typedef struct st_net {
  enum enum_net_type nettype;
  int rest;
} NET;

enum enums_enums {
  ENUMS_ONE   = 1,
  ENUMS_TWO   = 2,
  ENUMS_THREE = 3
};

#endif /* !_ENUMS_H */

Generated by  Doxygen 1.6.0   Back to index