Remove pre-ANSI C support.
Fix empty lines at EOF.
Fix space at EOL.
Remove unnecessary extern declaration on API functions.