From f975d39a452e1a4cfd6fc40689404a31458f6806 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Tue, 20 Mar 1990 11:31:58 +0000 Subject: [PATCH] defines for malloc() and realloc() conditional defines for abs(), min(), and max() --- flexdef.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.40.0