irungentoo/ProjectTox-Core — pull request #457 by aaboagye (2013-08-14 07:20:44+00:00)
Title: core,nTox,toxic - Fix for Issue #453. Begin refactoring w/astyle.

This commit introduces a few things. Basically I didn't like the fact that
although we had a coding style document, no one was following it. See
https://github.com/irungentoo/ProjectTox-Core/issues/453 for more info regarding
that. The only change is that I'm going forward with the style that is posted on the
wiki. This commit just marks the first of my efforts to refactor the code base
according to the posted coding style document.

Using astyle, I was able to lint through all of the source files giving the
provided tools/astylerc as an options input. I propose that users can add
this functionality as a pre-commit hook. More info is in the README file.

However, this has only been tested on Linux and I imagine should work on OSX as
well. I don't think pre-commit hooks work on Windows, but I may be mistaken. The
pre-commit hook is optional as well, but may be a good idea.

The future commits I plan are refactoring the source files for other offending
items such as using typedefs. See http://wiki.tox.im/index.php/Coding_Style.