aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.h')
-rw-r--r--src/malloc.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/malloc.h b/src/malloc.h
index de2cc9f..4ed5f08 100644
--- a/src/malloc.h
+++ b/src/malloc.h
@@ -2,12 +2,12 @@
Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
Netherlands.
- All Rights Reserved
+ All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
@@ -36,11 +36,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define HAVE_STDLIB
#endif
-#ifdef __STDC__
-#define ANY void
-#define HAVE_STDLIB
-#endif
-
#ifndef ANY
#define ANY char
#endif
@@ -51,10 +46,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define NEW(type, n) ( (type *) malloc((n) * sizeof(type)) )
#define RESIZE(p, type, n) \
- if ((p) == NULL) \
- (p) = (type *) malloc((n) * sizeof(type)); \
- else \
- (p) = (type *) realloc((char *)(p), (n) * sizeof(type))
+ if ((p) == NULL) \
+ (p) = (type *) malloc((n) * sizeof(type)); \
+ else \
+ (p) = (type *) realloc((char *)(p), (n) * sizeof(type))
#define DEL(p) free((char *)p)
#define XDEL(p) if ((p) == NULL) ; else DEL(p)