構造体のポインタ宣言間違い
これでコンパイルが通る…危険
誤:
正:
///状態遷移
typedef struct RegTrans_
{
struct RegTrans *next;
int type;
}RegTrans;
///状態遷移
typedef struct RegTrans_
{
struct RegTrans_ *next;
int type;
}RegTrans;
これでコンパイルが通る…危険
誤:
正:
///状態遷移
typedef struct RegTrans_
{
struct RegTrans *next;
int type;
}RegTrans;
///状態遷移
typedef struct RegTrans_
{
struct RegTrans_ *next;
int type;
}RegTrans;