/*************************************************************** * * * File: CEXT.H * * * * Description: * * * * Header file for CEXT library. CEXT manages allocation and * * access of extended memory. * * * ***************************************************************/ #ifndef CEXTHEADER #define CEXTHEADER #include typedef unsigned long LPTR; /* convert segmented address to linear address */ #define seg_to_linear(fp)(((LPTR) FP_SEG(fp)<<4)+FP_OFF(fp)) unsigned int ext_size(void); LPTR ext_alloc(unsigned size); LPTR ext_realloc(unsigned size); int ext_free(int exitflag); int extmemcpy(LPTR dst,LPTR src,unsigned int wc); #endif