1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 04:12:51 +00:00

Cleanup choice of valloc/malloc based on OS

Although vmalloc() is deprecated in new code, it exists on a number of OSs.

	modified:   src/ldsout.c
This commit is contained in:
Nick Briggs
2020-07-12 15:59:25 -07:00
parent 7eca23930b
commit 46c3dc1991

View File

@@ -58,16 +58,10 @@ extern int errno;
is going to expand or not */
int Storage_expanded; /* T or NIL */
/* RISCOS, OSF1 and MACOSX don't have valloc, and malloc works OK there. */
#if defined(LINUX)
/* has valloc() */
#else
#if defined(SYSVONLY) || defined(OSF1) || defined(MACOSX)
/* RISCOS and OSF1 don't have valloc, and malloc works OK there. */
#if defined(SYSVONLY) || defined(OSF1) || defined(RISCOS)
#define valloc malloc
#else
char *valloc();
#endif /* SYSVONLY || OSF1 || MACOSX */
#endif /* not LINUX */
#endif /* SYSVONLY || OSF1 || RISCOS */
/************************************************************************/
/* */