Protothreads in pure C

Now that’s some smart code. K& R would be proud.