* All source files: Get rid of nasty special cases for
[pspp] / src / pool.c
index cce54af9cc1f8dc8b7ddd799de60e5f1440c7e65..ca05039a7a011e5c3ca39aff172acca6df9ab675 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include "alloc.h"
 #include "pool.h"
+#include "str.h"
 
 /* Fast, low-overhead memory block suballocator. */
 struct pool
@@ -101,17 +102,15 @@ union align
 #define ALIGN_SIZE sizeof (union align)
 #endif
 
-/* DISCRETE_BLOCKS may be declared as nonzero to prevent suballocation
-   of blocks.  This is useful under memory debuggers like Checker
-   because it allows the source location of bugs to be more accurately
-   pinpointed.
+/* DISCRETE_BLOCKS may be declared as nonzero to prevent
+   suballocation of blocks.  This is useful under memory
+   debuggers like Checker or valgrind because it allows the
+   source location of bugs to be more accurately pinpointed.
 
    On the other hand, if we're testing the library, then we want to
    test the library's real functionality, not its crippled, slow,
    simplified functionality. */
-#if __CHECKER__  && !SELF_TEST
-#define DISCRETE_BLOCKS 1
-#endif
+/*#define DISCRETE_BLOCKS 1*/
 
 /* Enable debug code if appropriate. */
 #undef DEBUGGING