X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fxms.h;h=b1bdb012ae40ed897599a2ea46390e9449cc4708;hb=fb97121f7d0be4408d8e2ed98a2f7b10b852a915;hp=b65874943985849cfb9c69de61cff85f09136792;hpb=fdda3e0aec6ed31959bf39263116dc5f6a481a4b;p=16.git diff --git a/src/lib/xms.h b/src/lib/xms.h old mode 100644 new mode 100755 index b6587494..b1bdb012 --- a/src/lib/xms.h +++ b/src/lib/xms.h @@ -1,28 +1,28 @@ -#ifndef _XMS_H_ -#define _XMS_H_ -#include /* Definition of NULL */ -#include /* Definition of UINT_MAX */ -#include /* fprintf and (FILE *) */ - -/* Allow external configuration of maximum concurrent XMS allocations */ -#ifndef MAX_XMS_ALLOCATIONS -#define MAX_XMS_ALLOCATIONS 4 -#endif - -/* Address of the XMS driver */ -static long XMSControl; - -/* Mapping of XMS handle <-> normal pointer */ -typedef struct { - unsigned int XMSHandle; - void huge * XMSPointer; -} XMSHandleMap; - -static XMSHandleMap allocMapXMS[MAX_XMS_ALLOCATIONS]; - -static int initxms(void); -void huge * xmsmalloc(long unsigned int size); -void xmsfree(void huge * XMSPointer); -void xmsreport(void/*FILE * stream*/); - -#endif/*_XMS_H_*/ +#ifndef _XMS_H_ +#define _XMS_H_ +#include /* Definition of NULL */ +#include /* Definition of UINT_MAX */ +#include /* fprintf and (FILE *) */ + +/* Allow external configuration of maximum concurrent XMS allocations */ +#ifndef MAX_XMS_ALLOCATIONS +#define MAX_XMS_ALLOCATIONS 4 +#endif + +/* Address of the XMS driver */ +static long XMSControl; + +/* Mapping of XMS handle <-> normal pointer */ +typedef struct { + unsigned int XMSHandle; + void huge * XMSPointer; +} XMSHandleMap; + +static XMSHandleMap allocMapXMS[MAX_XMS_ALLOCATIONS]; + +static int initxms(void); +void huge * xmsmalloc(long unsigned int size); +void xmsfree(void huge * XMSPointer); +void xmsreport(void/*FILE * stream*/); + +#endif/*_XMS_H_*/