summaryrefslogtreecommitdiffstats
path: root/test/bitmap.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid variable length arrays and remove declarations within codeMike Hommey2012-04-291-4/+12
| | | | | | | | | | | | MSVC doesn't support C99, and building as C++ to be able to use them is dangerous, as C++ and C99 are incompatible. Introduce a VARIABLE_ARRAY macro that either uses VLA when supported, or alloca() otherwise. Note that using alloca() inside loops doesn't quite work like VLAs, thus the use of VARIABLE_ARRAY there is discouraged. It might be worth investigating ways to check whether VARIABLE_ARRAY is used in such context at runtime in debug builds and bail out if that happens.
* Remove #includes in testsMike Hommey2012-04-221-6/+0
| | | | | | | Since we're now including jemalloc_internal.h, all the required headers are already pulled. This will avoid having to fiddle with headers that can or can't be used with MSVC. Also, now that we use malloc_printf, we can use util.h's definition of assert instead of assert.h's.
* Replace fprintf with malloc_printf in tests.Mike Hommey2012-04-171-8/+2
|
* Move repo contents in jemalloc/ to top level.Jason Evans2011-04-011-0/+157