replaced function static variables with struct members

formatted with 4 spaces

fixed highlighting for java

(0) -10 -3 +3 +10 +30 tip

mercurial