fix c99 declaration and pretty print the code