For those curious, here's what the protothread function in my previous post looks like after being passed through the C preprocessor and being indented using indent -linux:
char lights_thread(struct pt *pt)
{
{
char PT_YIELD_FLAG = 1;
switch ((pt)->lc) {
case 0:;
for (;;) {
printf("\n-> red")
(
Read more... )