The 'all on one line with a ';' on the end' thing might be stylistically influenced by C++, where it is often used for small functions in class definitions.

But it is not the done thing for plain C.