| [1190] | 1 |  | 
|---|
|  | 2 | /*********************************************************************** | 
|---|
|  | 3 |  | 
|---|
| [1202] | 4 | $Id: wrappers.h 1327 2008-12-09 04:02:12Z stevenhl $ | 
|---|
| [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 | 
|---|
| [1190] | 12 |  | 
|---|
|  | 13 | ***********************************************************************/ | 
|---|
|  | 14 |  | 
|---|
|  | 15 | #if !defined(WRAPPERS_H) | 
|---|
|  | 16 | #define WRAPPERS_H | 
|---|
|  | 17 |  | 
|---|
| [1327] | 18 | #if !defined(OS2_INCLUDED) | 
|---|
|  | 19 | #include <os2.h> | 
|---|
|  | 20 | #endif | 
|---|
|  | 21 |  | 
|---|
| [1190] | 22 | APIRET xDosFindFirst(PSZ pszFileSpec, | 
|---|
|  | 23 | PHDIR phdir, | 
|---|
|  | 24 | ULONG  flAttribute, | 
|---|
|  | 25 | PVOID  pfindbuf, | 
|---|
|  | 26 | ULONG  cbBuf, | 
|---|
|  | 27 | PULONG pcFileNames, | 
|---|
|  | 28 | ULONG  ulInfoLevel); | 
|---|
|  | 29 | APIRET xDosFindNext(HDIR   hDir, | 
|---|
|  | 30 | PVOID  pfindbuf, | 
|---|
|  | 31 | ULONG  cbfindbuf, | 
|---|
|  | 32 | PULONG pcFilenames, | 
|---|
|  | 33 | ULONG  ulInfoLevel);        // 06 Oct 07 SHL Added | 
|---|
|  | 34 | APIRET xDosSetPathInfo(PSZ   pszPathName, | 
|---|
|  | 35 | ULONG ulInfoLevel, | 
|---|
|  | 36 | PVOID pInfoBuf, | 
|---|
|  | 37 | ULONG cbInfoBuf, | 
|---|
|  | 38 | ULONG flOptions); | 
|---|
|  | 39 | PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile, | 
|---|
|  | 40 | UINT uiLineNumber); | 
|---|
|  | 41 | PSZ xfgets_bstripcr(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile, | 
|---|
|  | 42 | UINT uiLineNumber); | 
|---|
|  | 43 | FILE *xfopen(PCSZ pszFileName, PCSZ pszMode, PCSZ pszSrcFile, | 
|---|
|  | 44 | UINT uiLineNumber); | 
|---|
|  | 45 | VOID xfree(PVOID pv, PCSZ pszSrcFile, UINT uiLineNumber); | 
|---|
|  | 46 | FILE *xfsopen(PCSZ pszFileName, PCSZ pszMode, INT fSharemode, PCSZ pszSrcFile, | 
|---|
|  | 47 | UINT uiLineNumber); | 
|---|
|  | 48 | PVOID xmalloc(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); | 
|---|
|  | 49 | PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); | 
|---|
|  | 50 | PVOID xrealloc(PVOID pvIn, size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); | 
|---|
|  | 51 | PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber); | 
|---|
|  | 52 |  | 
|---|
| [1215] | 53 | // Data declarations | 
|---|
|  | 54 | extern BOOL fNoLargeFileSupport; | 
|---|
| [1190] | 55 |  | 
|---|
|  | 56 | #endif // WRAPPERS_H | 
|---|