bitbckt (owner)

Revisions

gist: 214648 Download_button fork
public
Public Clone URL: git://gist.github.com/214648.git
Embed All Files: show embed
temp.c #
1
2
3
4
5
6
7
8
9
10
11
struct foo {
  int type;
#define TYPE_INT 1
#define TYPE_PAIR_OF_INTS 2
#define TYPE_STRING 3
  union {
    int i; // If type == TYPE_INT.
    int pair[2]; // If type == TYPE_PAIR_OF_INTS.
    char *str; // If type == TYPE_STRING.
  } u;
};