summaryrefslogtreecommitdiff
path: root/tests/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/memory.c')
-rw-r--r--tests/memory.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/memory.c b/tests/memory.c
index 8284e3d13..a145e0328 100644
--- a/tests/memory.c
+++ b/tests/memory.c
@@ -4,6 +4,9 @@ Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
+ChangeLog:
+ tests_memory_valid has been commented out since it is not used
+
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or (at your
@@ -21,12 +24,12 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h> /* for abort */
+#include <limits.h>
+
#include "gmp.h"
#include "gmp-impl.h"
-#include "mpfr.h"
#include "mpfr-test.h"
-
/* Each block allocated is a separate malloc, for the benefit of a redzoning
malloc debugger during development or when bug hunting.
@@ -37,7 +40,6 @@ MA 02111-1307, USA. */
when tests_memory_end() is called. Test programs must be sure to have
"clear"s for all temporary variables used. */
-
struct header {
void *ptr;
size_t size;
@@ -60,11 +62,13 @@ tests_memory_find (void *ptr)
return NULL;
}
+/*
static int
tests_memory_valid (void *ptr)
{
return (tests_memory_find (ptr) != NULL);
}
+*/
static void *
tests_allocate (size_t size)