summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1990-03-20 11:31:58 +0000
committerVern Paxson <vern@ee.lbl.gov>1990-03-20 11:31:58 +0000
commitf975d39a452e1a4cfd6fc40689404a31458f6806 (patch)
treeb623fc450bb7f580a9e7f543aa6ac08eac6cf1ab /flexdef.h
parent236fedcd5ef4b90a668e3fb4b9c9f9a9120349a9 (diff)
defines for malloc() and realloc()
conditional defines for abs(), min(), and max()
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/flexdef.h b/flexdef.h
index 9df7899..4146fe6 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -52,7 +52,9 @@
#ifdef AMIGA
#define bzero(s, n) setmem((char *)(s), n, '\0')
+#ifndef abs
#define abs(x) ((x) < 0 ? -(x) : (x))
+#endif
#else
#define bzero(s, n) memset((char *)(s), '\0', n)
#endif
@@ -83,6 +85,8 @@ char *sprintf(); /* keep lint happy */
#endif
#endif
+char *malloc(), *realloc();
+
/* maximum line length we'll have to deal with */
#define MAXLINE BUFSIZ
@@ -90,11 +94,17 @@ char *sprintf(); /* keep lint happy */
/* maximum size of file name */
#define FILENAMESIZE 1024
+#ifndef min
#define min(x,y) ((x) < (y) ? (x) : (y))
+#endif
+#ifndef max
#define max(x,y) ((x) > (y) ? (x) : (y))
+#endif
#ifdef MS_DOS
+#ifndef abs
#define abs(x) ((x) < 0 ? -(x) : (x))
+#endif
#define SHORT_FILE_NAMES
#endif