cil_write_ast.c: make functions static

As pointed out in https://android-review.googlesource.com/328711, a
bunch of functions which should be static aren't. Fix them.

Also do some minor cleanup while I'm here.

Test: Code compiles.
Change-Id: I669e59d61415314720bbf434802527b5eb7a02b7
1 file changed