I have the function:
However this doesn't work.. can you tell me why and how to make it work?Code:static int check(Node * t){ int flag = FALSE; int flag1 = FALSE; switch(t->type){ case A: switch(t->kind.a) case A1: { flag = TRUE; } case A2: ................... break; case B: switch(t->kind.b) case B1: ................ case B2: .............. break; case C: switch(t->kind.c) case C1: { flag1 = TRUE; } case C2: ....................... break; if (flag1 == FALSE && flag == TRUE) fprintf(stderr, "FAILED!\n"); break; }
}