Refactor config.{c,h}

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Add .clang-format file

This adds a configuration file for the `clang-format' command-line tool
that can be used via `clang-format -style=file foo.c' if the
.clang-format file is found alongside or in a top-level directory of
foo.c.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Add format-source.sh script

This script automatically formats any source files with `clang-format'
according to the rules specified in .clang-format.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
.clang-format: use tab for indentation and...

don't use space after control statement

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Don't format third-party code

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Merge pull request #41 from nkoep/refactor-config-code

Refactor config.{c,h}
Merge pull request #40 from nkoep/clang-format

Add wrapper script and config for clang-format
Merge branch 'maato-master'

Conflicts:
	src/config.c
	src/config.h