instead of using hard coded divisions to calculate ram stats it's better to use
macros defined in config.h. BSD port was doing this already, using macros
defined in it's common.h header. I pulled those macros out and applied them to
all platforms.
File version.h.in got renamed into config.h.in since it doesn't caontain only
the version anymore.
now the version variables will be prefixed with 'tmux-mem-cpu-load'. This way we
won't clash with any future dependency that might redefine those variables.
This is exactly how CMake does it in their code, see:
f3e92d2816/Source/CMakeVersion.cmake6ae98ee18f/Source/cmVersionConfig.h.in6ae98ee18f/Source/CMakeVersionCompute.cmake
the only difference is that they have functions that return the versions and I
use those variables directly.
6ae98ee18f/Source/cmVersion.cxx
Since the partial version variables are not used anywhere in the code we might
as well remove them from version.h.in. I've deciced to leave them for now, since
we might need them in the future.
* Use std::sting instead of char[] in the graph drawing functions. This is the
only change to the code. Rest is just styling.
* Corrected whole code to follow Allman/GNU coding style, with 2 spaces for each
indentation step.
* Added license headers to all code files
* Added vim modelines to all files. They sit on the first line and enable the
following settings: 2 space indentation, tab expansion to spaces, line at
80th column, automatic line breaking on "\ !@*+-;:,./?" characters, automatic
line break if line exceeds 80 colums. This should keep the code nice and tidy.