X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fxms.h;h=b1bdb012ae40ed897599a2ea46390e9449cc4708;hb=bee28e8a01c70bae522ef12947c296f837110dbe;hp=100db36291f90fe87281c781fbe7d6c6a2d84b5d;hpb=f1c9c170d9fc5f657ef887201410021017fd9a46;p=16.git diff --git a/src/lib/xms.h b/src/lib/xms.h old mode 100644 new mode 100755 index 100db362..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(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_*/