Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
The Amalgamation Build
To simplify using whalloc in other source trees (which is something i actually do), we have an "amalgamation build." An amalgamation build combines all of the project's headers into one file and all of the sources into another file. Then clients simply need to include those two files into their project trees.
Here's how it's done:
~> ./createAmalgamation.sh Creating whalloc_amalgamation.h... Creating whalloc_amalgamation.c... Done: -rw-r--r-- 1 stephan stephan 77632 2010-03-01 15:12 whalloc_amalgamation.c -rw-r--r-- 1 stephan stephan 85091 2010-03-01 15:12 whalloc_amalgamation.h Try to compile it with: gcc -c -fPIC -std=c89 -pedantic -Wall whalloc_amalgamation.c or: tcc -c -Wall whalloc_amalgamation.c
To quickly test it just use the commands shown in the output:
~> time gcc -c -fPIC -std=c89 -pedantic -Wall whalloc_amalgamation.c real 0m0.198s user 0m0.192s sys 0m0.004s ~> time tcc -c -Wall whalloc_amalgamation.c real 0m0.015s user 0m0.012s sys 0m0.000s
(tcc is fast!)