From 5113680f95e522c677cdd37072cfffbdca06831e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 10 Apr 2006 08:07:38 +0000 Subject: - split up in libstrong, charon, stroke, testing done - new leak detective with malloc hook in library - useable, but needs improvements - logger_manager has now a single instance per library - allows use of loggers from any linking prog - a LOT of other things --- Source/lib/definitions.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Source/lib/definitions.h') diff --git a/Source/lib/definitions.h b/Source/lib/definitions.h index 2acec8d0a..11bd04f74 100644 --- a/Source/lib/definitions.h +++ b/Source/lib/definitions.h @@ -202,12 +202,27 @@ */ #define POS printf("%s, line %d\n", __FILE__, __LINE__) + + + /** - * Papping entry which defines the end of a mapping_t array. + * Macro to allocate a type as chunk_t. + * + * @param thing object on which a sizeof is performed + * @return chunk_t pointing to allocated memory */ -#define MAPPING_END (-1) +#define malloc_thing(thing) ((thing*)malloc(sizeof(thing))) + + + + +/** + * Mapping entry which defines the end of a mapping_t array. + */ +#define MAPPING_END (-1) + typedef struct mapping_t mapping_t; /** -- cgit v1.2.3