home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
SPAWNO41.ZIP
/
SOURCE.ZIP
/
INIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-29
|
973b
|
29 lines
/********************************************************************/
/* SPAWNO v4.0 EMS/XMS/disk swapping replacement for spawn...() */
/* (c) Copyright 1991 Ralf Brown All Rights Reserved */
/* */
/* May be freely copied provided that this copyright notice is */
/* not altered or removed. */
/********************************************************************/
#include "_spawno.h"
void _Cdecl init_SPAWNO(const char *overlay_path, int swap_types)
{
const char *swapdirs ;
swapdirs = getenv("SWAPDIR") ;
if (!swapdirs && overlay_path && *overlay_path)
swapdirs = overlay_path ;
if (!swapdirs)
swapdirs = getenv("TEMP") ;
if (!swapdirs)
swapdirs = getenv("TMP") ;
if (swapdirs)
___spawn_swap_dirs = swapdirs ;
__spawn_ext = (swap_types & SWAP_EXT) != 0 ;
__spawn_ems = (swap_types & SWAP_EMS) != 0 ;
__spawn_xms = (swap_types & SWAP_XMS) != 0 ;
}