Jonovono/c — pull request #4 by belak (2012-08-06 14:25:07+00:00)
Title: Lots of changes - cleanup and refactoring

Note: spaces were converted back to tabs because that's what I usually work in. If you want to change them back, be my guest.

* Syntactical changes
** Tried to change all the char* to char * and similar things - This is for consistency. If you have char* str1, str2 you may think that both str1 and str2 are char *s, but in reality str1 is a char * and str2 is a char.
** Also changed char[] to char *, mostly to avoid confusion. A char * is not an array.
** Removed extra spaces
** Changed the switch statements to if-elseif-else simply for clarity. When code blocks get that large it's easiest to separate them clearly.
** Switched all var assignments from var=value to var = value
** Changed as many const char * to char * as possible. It's sort of a contract sort of thing. If you pass a char * into a function, it has the possibility to be modified. A const char * should not be modified.

* Code changes
** Re-removed the allocFilename and freeFilename in favor of asprintf and free. It's my personal opinion that if you're just wrapping free, it doesn't accomplish much to have an extra function.
** Refactoring checkComment and addComment.

* Other
** Added a gitignore file to ignore objects and extra autotools stuff
** Made the -Wall and -Werror flags actually used in building (and fixed warnings that showed up because if that)

There may have been other changes... but those should be most of them.