Personally I would avoid {.global.} and "static" in C too, just like I would avoid global variables. Why not create a state object for all your state and pass it around?
I know it's a bit more painful but it avoids a lot of problems and makes your code far better organised.