Be C89 friendly, declare variables on the top of the functions
Merge pull request #9 from linquize/c89

Be C89 friendly, declare variables on the top of the functions