[1190] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
[1202] | 4 | $Id: wrappers.h 1544 2010-09-30 13:00:59Z gyoung $
|
---|
[1190] | 5 |
|
---|
[1327] | 6 | Wrappers with error checking
|
---|
[1190] | 7 |
|
---|
[1202] | 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2008 Steven H. Levine
|
---|
[1190] | 10 |
|
---|
[1327] | 11 | 08 Dec 08 SHL Add missing OS2_INCLUDED check
|
---|
[1439] | 12 | 12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
|
---|
[1190] | 13 |
|
---|
| 14 | ***********************************************************************/
|
---|
| 15 |
|
---|
| 16 | #if !defined(WRAPPERS_H)
|
---|
| 17 | #define WRAPPERS_H
|
---|
| 18 |
|
---|
[1327] | 19 | #if !defined(OS2_INCLUDED)
|
---|
| 20 | #include <os2.h>
|
---|
| 21 | #endif
|
---|
| 22 |
|
---|
[1439] | 23 | APIRET xDosQueryAppType(PCSZ pszName, PULONG pFlags);
|
---|
| 24 |
|
---|
[1438] | 25 | APIRET xDosAllocSharedMem(PPVOID ppb,
|
---|
| 26 | PSZ pszName,
|
---|
| 27 | ULONG cb,
|
---|
| 28 | ULONG flag);
|
---|
| 29 |
|
---|
| 30 | APIRET xDosAllocMem(PPVOID ppb,
|
---|
| 31 | ULONG cb,
|
---|
[1439] | 32 | ULONG flag,
|
---|
| 33 | PCSZ pszSrcFile,
|
---|
| 34 | UINT uiLineNumber);
|
---|
[1438] | 35 |
|
---|
[1190] | 36 | APIRET xDosFindFirst(PSZ pszFileSpec,
|
---|
| 37 | PHDIR phdir,
|
---|
| 38 | ULONG flAttribute,
|
---|
| 39 | PVOID pfindbuf,
|
---|
| 40 | ULONG cbBuf,
|
---|
| 41 | PULONG pcFileNames,
|
---|
| 42 | ULONG ulInfoLevel);
|
---|
| 43 | APIRET xDosFindNext(HDIR hDir,
|
---|
| 44 | PVOID pfindbuf,
|
---|
| 45 | ULONG cbfindbuf,
|
---|
| 46 | PULONG pcFilenames,
|
---|
| 47 | ULONG ulInfoLevel); // 06 Oct 07 SHL Added
|
---|
| 48 | APIRET xDosSetPathInfo(PSZ pszPathName,
|
---|
| 49 | ULONG ulInfoLevel,
|
---|
| 50 | PVOID pInfoBuf,
|
---|
| 51 | ULONG cbInfoBuf,
|
---|
| 52 | ULONG flOptions);
|
---|
| 53 | PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
|
---|
| 54 | UINT uiLineNumber);
|
---|
| 55 | PSZ xfgets_bstripcr(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
|
---|
| 56 | UINT uiLineNumber);
|
---|
| 57 | FILE *xfopen(PCSZ pszFileName, PCSZ pszMode, PCSZ pszSrcFile,
|
---|
[1544] | 58 | UINT uiLineNumber, BOOL fSilent);
|
---|
[1190] | 59 | VOID xfree(PVOID pv, PCSZ pszSrcFile, UINT uiLineNumber);
|
---|
| 60 | FILE *xfsopen(PCSZ pszFileName, PCSZ pszMode, INT fSharemode, PCSZ pszSrcFile,
|
---|
[1544] | 61 | UINT uiLineNumber, BOOL fSilent);
|
---|
[1190] | 62 | PVOID xmalloc(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
|
---|
| 63 | PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
|
---|
| 64 | PVOID xrealloc(PVOID pvIn, size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
|
---|
| 65 | PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber);
|
---|
| 66 |
|
---|
[1215] | 67 | // Data declarations
|
---|
| 68 | extern BOOL fNoLargeFileSupport;
|
---|
[1190] | 69 |
|
---|
| 70 | #endif // WRAPPERS_H
|
---|