From a28c11d35afa5076eaccce8416f79a09e9d071cb Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Mon, 23 Oct 2017 19:42:30 +0200 Subject: [PATCH] done --- malloc/srcs/free.c | 2 +- malloc/srcs/interface.c | 4 ++-- malloc/srcs/interface_extended.c | 2 +- malloc/srcs/malloc.c | 2 +- malloc/srcs/show_alloc_mem.c | 2 +- malloc/tests/test0.c | 1 - 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/malloc/srcs/free.c b/malloc/srcs/free.c index 01a071f0..9414e2ae 100644 --- a/malloc/srcs/free.c +++ b/malloc/srcs/free.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/17 12:28:03 by jhalford #+# #+# */ -/* Updated: 2017/10/22 17:32:14 by jhalford ### ########.fr */ +/* Updated: 2017/10/23 19:32:20 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/malloc/srcs/interface.c b/malloc/srcs/interface.c index 9b8cea12..306a31ff 100644 --- a/malloc/srcs/interface.c +++ b/malloc/srcs/interface.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/10/22 13:25:32 by jhalford #+# #+# */ -/* Updated: 2017/10/22 17:34:54 by jhalford ### ########.fr */ +/* Updated: 2017/10/23 19:41:14 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,7 +18,7 @@ t_chunk *g_zones[M_ZONES_MAX] = NULL, NULL, }; -int g_malloc_debug = 0; +int g_malloc_debug = 1; pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; void *malloc(size_t size) diff --git a/malloc/srcs/interface_extended.c b/malloc/srcs/interface_extended.c index 523bc67d..34aebd4c 100644 --- a/malloc/srcs/interface_extended.c +++ b/malloc/srcs/interface_extended.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/10/22 17:32:51 by jhalford #+# #+# */ -/* Updated: 2017/10/22 18:45:28 by jhalford ### ########.fr */ +/* Updated: 2017/10/23 19:40:43 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/malloc/srcs/malloc.c b/malloc/srcs/malloc.c index 04dfefed..d04c44e9 100644 --- a/malloc/srcs/malloc.c +++ b/malloc/srcs/malloc.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/17 12:28:02 by jhalford #+# #+# */ -/* Updated: 2017/10/22 18:45:48 by jhalford ### ########.fr */ +/* Updated: 2017/10/23 19:41:03 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/malloc/srcs/show_alloc_mem.c b/malloc/srcs/show_alloc_mem.c index f77c14f3..e586223b 100644 --- a/malloc/srcs/show_alloc_mem.c +++ b/malloc/srcs/show_alloc_mem.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/17 12:28:20 by jhalford #+# #+# */ -/* Updated: 2017/10/22 13:37:38 by jhalford ### ########.fr */ +/* Updated: 2017/10/23 19:42:14 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/malloc/tests/test0.c b/malloc/tests/test0.c index 9db9c897..d3120a9b 100644 --- a/malloc/tests/test0.c +++ b/malloc/tests/test0.c @@ -7,7 +7,6 @@ int main(void) char *addr; i = 0; - printf("check"); while (i < 1024) { i++;