diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1990-03-20 11:31:58 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1990-03-20 11:31:58 +0000 |
commit | f975d39a452e1a4cfd6fc40689404a31458f6806 (patch) | |
tree | b623fc450bb7f580a9e7f543aa6ac08eac6cf1ab /flexdef.h | |
parent | 236fedcd5ef4b90a668e3fb4b9c9f9a9120349a9 (diff) |
defines for malloc() and realloc()
conditional defines for abs(), min(), and max()
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |