Changeset 91 for trunk/include/helpers
- Timestamp:
- Aug 2, 2001, 10:36:35 PM (24 years ago)
- Location:
- trunk/include/helpers
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dosh.h
r81 r91 158 158 APIRET doshQueryDiskParams(ULONG ulLogicalDrive, 159 159 PBIOSPARAMETERBLOCK pdp); 160 161 BOOL XWPENTRY doshIsCDROM(PBIOSPARAMETERBLOCK pdp); 162 160 163 #endif 164 165 APIRET XWPENTRY doshHasAudioCD(ULONG ulLogicalDrive, 166 BOOL fMixedModeCD, 167 PBOOL pfAudio); 161 168 162 169 VOID XWPENTRY doshEnumDrives(PSZ pszBuffer, -
trunk/include/helpers/gpih.h
r70 r91 160 160 LONG lSize, 161 161 BOOL fFamily, 162 PSZ pszName,162 const char *pcszName, 163 163 USHORT usFormat, 164 164 PFONTMETRICS pFontMetrics); … … 166 166 LONG lSize, 167 167 BOOL fFamily, 168 PSZ pszName,168 const char *pcszName, 169 169 USHORT usFormat, 170 170 PFONTMETRICS pFontMetrics); -
trunk/include/helpers/linklist.h
r74 r91 140 140 typedef LSTINIT *PLSTINIT; 141 141 142 #if def __DEBUG_MALLOC_ENABLED__// setup.h, helpers\memdebug.c142 #if (defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_LIST_MALLOC)) // setup.h, helpers\memdebug.c 143 143 PLINKLIST XWPENTRY lstCreateDebug(BOOL fItemsFreeable, 144 144 const char *file, … … 194 194 typedef LSTINDEXFROMITEM *PLSTINDEXFROMITEM; 195 195 196 #if def __DEBUG_MALLOC_ENABLED__// setup.h, helpers\memdebug.c196 #if (defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_LIST_MALLOC)) // setup.h, helpers\memdebug.c 197 197 PLISTNODE XWPENTRY lstAppendItemDebug(PLINKLIST pList, 198 198 void* pNewItemData, -
trunk/include/helpers/memdebug.h
r71 r91 4 4 * header file for memdebug.c. 5 5 * See remarks there. 6 * 7 * The following macros are used: 8 * 9 * -- __XWPMEMDEBUG__: if defined, memory debugging is generally 10 * enabled. This must be set in setup.h. 11 * 12 * -- __DEBUG_MALLOC_ENABLED__: malloc etc. have been replaced 13 * with memdMalloc etc. This is automatically 14 * defined by this header if __XWPMEMDEBUG__ 15 * is defined, unless DONT_REPLACE_MALLOC 16 * is also defined. 6 17 * 7 18 * Note: Version numbering in this file relates to XWorkplace version -
trunk/include/helpers/stringh.h
r81 r91 32 32 #define STRINGH_HEADER_INCLUDED 33 33 34 PSZ strhdup(const char *pszSource); 34 PSZ strhcpy(PSZ string1, const char *string2); 35 36 #if defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_STRINGH_MALLOC) // setup.h, helpers\memdebug.c 37 PSZ strhdupDebug(const char *pszSource, 38 const char *pcszSourceFile, 39 unsigned long ulLine, 40 const char *pcszFunction); 41 #define strhdup(a) strhdupDebug((a), __FILE__, __LINE__, __FUNCTION__) 42 #else 43 PSZ strhdup(const char *pszSource); 44 #endif 35 45 36 46 int strhcmp(const char *p1, const char *p2); … … 48 58 BOOL strhIsDecimal(PSZ psz); 49 59 50 PSZ strhSubstr(const char *pBegin, const char *pEnd); 60 #if defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_STRINGH_MALLOC) // setup.h, helpers\memdebug.c 61 PSZ strhSubstrDebug(const char *pBegin, // in: first char 62 const char *pEnd, // in: last char (not included) 63 const char *pcszSourceFile, 64 unsigned long ulLine, 65 const char *pcszFunction); 66 #define strhSubstr(a, b) strhSubstrDebug((a), (b), __FILE__, __LINE__, __FUNCTION__) 67 #else 68 PSZ strhSubstr(const char *pBegin, const char *pEnd); 69 #endif 51 70 52 71 PSZ strhExtract(PSZ pszBuf, -
trunk/include/helpers/winh.h
r85 r91 201 201 SHORT afStyle, 202 202 SHORT afAttr); 203 typedef SHORT XWPENTRY WINHINSERTMENUITEM(HWND hwndMenu, 204 SHORT iPosition, 205 SHORT sItemId, 206 const char *pcszItemTitle, 207 SHORT afStyle, 208 SHORT afAttr); 209 typedef WINHINSERTMENUITEM *PWINHINSERTMENUITEM; 203 210 204 211 HWND XWPENTRY winhInsertSubmenu(HWND hwndMenu, … … 211 218 USHORT afItemStyle, 212 219 USHORT afAttribute); 220 typedef HWND XWPENTRY WINHINSERTSUBMENU(HWND hwndMenu, 221 ULONG iPosition, 222 SHORT sMenuId, 223 const char *pcszSubmenuTitle, 224 USHORT afMenuStyle, 225 SHORT sItemId, 226 const char *pcszItemTitle, 227 USHORT afItemStyle, 228 USHORT afAttribute); 229 typedef WINHINSERTSUBMENU *PWINHINSERTSUBMENU; 213 230 214 231 BOOL XWPENTRY winhSetMenuCondCascade(HWND hwndMenu, -
trunk/include/helpers/xstring.h
r74 r91 50 50 ULONG ulDelta; // allocation delta (0 = none) 51 51 // V0.9.9 (2001-03-07) [umoeller] 52 53 // if memory debugging is enabled, enable the following 54 // extra fields globally... even if the caller doesn't 55 // want the replacement calls, the xstr* implementations 56 // are compiled with these fields, so they must always be 57 // present V0.9.14 (2001-08-01) [umoeller] 58 #if defined(__XWPMEMDEBUG__) // setup.h only 59 const char *file; 60 unsigned long line; 61 const char *function; 62 #endif 63 52 64 } XSTRING, *PXSTRING; 53 65 54 void XWPENTRY xstrInit(PXSTRING pxstr, ULONG ulPreAllocate); 66 #if defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_XSTR_MALLOC) // setup.h, helpers\memdebug.c 67 #define xstrInit(a, b) xstrInitDebug((a), (b), __FILE__, __LINE__, __FUNCTION__) 68 void XWPENTRY xstrInitDebug(PXSTRING pxstr, 69 ULONG ulPreAllocate, 70 const char *file, 71 unsigned long line, 72 const char *function); 73 typedef void XWPENTRY XSTRINITDEBUG(PXSTRING pxstr, 74 ULONG ulPreAllocate, 75 const char *file, 76 unsigned long line, 77 const char *function); 78 typedef XSTRINITDEBUG *PXSTRINITDEBUG; 79 #else 80 void XWPENTRY xstrInit(PXSTRING pxstr, ULONG ulPreAllocate); 81 typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate); 82 typedef XSTRINIT *PXSTRINIT; 83 #endif 84 85 /* void XWPENTRY xstrInit(PXSTRING pxstr, ULONG ulPreAllocate); 55 86 typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate); 56 typedef XSTRINIT *PXSTRINIT; 87 typedef XSTRINIT *PXSTRINIT; */ 57 88 58 89 void XWPENTRY xstrInitSet(PXSTRING pxstr, PSZ pszNew);
Note:
See TracChangeset
for help on using the changeset viewer.