Category : C Source Code
Archive   : XPMALLOC.ZIP
Filename : XPMALLOC.H
Output of file : XPMALLOC.H contained in archive : XPMALLOC.ZIP
** Extern declarations for xpmalloc.lib
*/
extern int xpmInit(struct typxpminfo *);
extern struct typxpmalloc *xpmalloc(unsigned long ,unsigned long ,int *);
extern int xpmFree(struct typxpmalloc *);
extern int xpmFreeAll(void);
extern int saveScreen(struct typxpmalloc *);
extern int restoreScreen(struct typxpmalloc *);
extern void clrScr(void);
extern void setCursor(int ,int );
extern void getCursor(int *,int *);
extern void drawBorder(int ,int ,int ,int );
extern int xpmPutDouble(struct typxpmalloc *,unsigned long , double);
extern int xpmGetDouble(struct typxpmalloc *,unsigned long , double *);
extern int xpmPutFloat(struct typxpmalloc *, unsigned long , double);
extern int xpmGetFloat(struct typxpmalloc *, unsigned long , float *);
extern int xpmPutLong(struct typxpmalloc *, unsigned long , long);
extern int xpmGetLong(struct typxpmalloc *, unsigned long , long *);
extern int xpmPutInt(struct typxpmalloc *, unsigned long , int);
extern int xpmGetInt(struct typxpmalloc *, unsigned long , int *);
/*
** structure for maintaining number of physical pages
** in system and associated address.
*/
typedef struct typaddrarray {
unsigned int pageSeg; /* Segment address of expanded page */
unsigned int pageNum; /* Expanded page number */
} typADDRARRAY;
/*
** structure for maintaining allocated handles and
** associated pages
*/
typedef struct typhandlepages {
unsigned int handle; /* expanded memory handle */
unsigned int pagesAlloced; /* pages allocated */
} typHANDLEPAGES;
/*
** structure for expanded memory allocation
*/
typedef struct typxpmalloc {
char *dataPtr; /* pointer to data */
typHANDLEPAGES xpmId; /* handle and # of pages for item */
unsigned int startPage; /* First logical page */
unsigned int topLogicalPage; /* First logical page mapped */
unsigned long itemSize; /* Size of a single item */
unsigned long totalSize; /* Total memory required */
unsigned int numOfPages; /* Number of pages required */
unsigned int numOfItems; /* Number of items per page */
unsigned int startByte; /* Offset from base SEG */
unsigned int accessedFlag; /* Structure mapped flag */
} typXPMALLOC;
/*
** structure for system information
*/
typedef struct typxpminfo {
int err; /* Error value */
char *errText; /* Error description */
unsigned int pageCount; /* Total pages in system */
unsigned int pagesAvail; /* Pages available for allocation */
char *pageFrame; /* Segment address of page frame */
char versionString[10]; /* String representation of version */
unsigned int openHandles; /* Number of open handles */
typHANDLEPAGES *allHandles; /* Pointer to list of handles and pages */
unsigned int addrCount; /* Number of mappable addressed */
typADDRARRAY *mapAddress; /* Pointer to list of mappable addressed */
} typXPMINFO;
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/