A quick hack would be to just define:
#define SWITCH_LBL(n) \
case n: \
lbl_##n:
#define STATE_CHANGE(s) \
state->mode = s; \
goto lbl_##s;
Then replace all the "state->mode = STATE; break;" into STATE_CHANGE(STATE);
I'm giving it a try as we speak ...
- Davide
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html