1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-07 02:00:19 +00:00

#else/#endif work

SCCS-file: ialloc.c
SCCS-SID: 7.11
This commit is contained in:
Arthur David Olson
1986-12-26 14:38:56 -05:00
committed by Paul Eggert
parent 2ee8f172c7
commit 51b164fa66

View File

@@ -12,14 +12,13 @@ static char sccsid[] = "%W%";
#ifndef alloc_t
#define alloc_t unsigned
#endif
#endif /* !alloc_t */
#ifdef MAL
#define NULLMAL(x) ((x) == NULL || (x) == MAL)
#endif
#ifndef MAL
#else /* !MAL */
#define NULLMAL(x) ((x) == NULL)
#endif
#endif /* !MAL */
extern char * calloc();
extern char * malloc();
@@ -36,12 +35,11 @@ imalloc(n)
n = 1;
result = malloc((alloc_t) n);
return (result == MAL) ? NULL : result;
#endif
#ifndef MAL
#else /* !MAL */
if (n == 0)
n = 1;
return malloc((alloc_t) n);
#endif
#endif /* !MAL */
}
char *