Code now conforms to the ANSI C89 standard.

Removed all inline functions, switched single-line comments
to multi-line comments, and changed the position of some declarations.