Commit d01b5318977a789b5df9da71d2434d45428bda1f

Steffen Jaeckel 2019-04-04T12:25:34

Revert "Merge pull request #188 from libtom/unused_xcalloc" This reverts commit 27417b85c72ee1417050e65507aab11ccf42e03a, reversing changes made to d449bd44c02e1308af7b4ae30310799d26d38496.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tommath_private.h b/tommath_private.h
index 057f878..56debfc 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -32,10 +32,12 @@ extern "C" {
 #   define XMALLOC(size)                   malloc(size)
 #   define XFREE(mem, size)                free(mem)
 #   define XREALLOC(mem, oldsize, newsize) realloc(mem, newsize)
+#   define XCALLOC   calloc
 #else
 /* prototypes for our heap functions */
 extern void *XMALLOC(size_t size);
 extern void *XREALLOC(void *mem, size_t oldsize, size_t newsize);
+extern void *XCALLOC(size_t n, size_t s);
 extern void XFREE(void *mem, size_t size);
 #endif