2012-06-01 enum型 ヘッダーの#defineとか書くところにenumを宣言 typedef enum { STATE_1, STATE_2, STATE_3 } THREESTATE; 使いかた if( hoge == SATE_1 ){ } みたいに使う。