Changeset 91 for trunk/include/helpers


Ignore:
Timestamp:
Aug 2, 2001, 10:36:35 PM (24 years ago)
Author:
umoeller
Message:

Misc changes

Location:
trunk/include/helpers
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dosh.h

    r81 r91  
    158158        APIRET doshQueryDiskParams(ULONG ulLogicalDrive,
    159159                                   PBIOSPARAMETERBLOCK pdp);
     160
     161        BOOL XWPENTRY doshIsCDROM(PBIOSPARAMETERBLOCK pdp);
     162
    160163    #endif
     164
     165    APIRET XWPENTRY doshHasAudioCD(ULONG ulLogicalDrive,
     166                                   BOOL fMixedModeCD,
     167                                   PBOOL pfAudio);
    161168
    162169    VOID XWPENTRY doshEnumDrives(PSZ pszBuffer,
  • trunk/include/helpers/gpih.h

    r70 r91  
    160160                               LONG lSize,
    161161                               BOOL fFamily,
    162                                PSZ pszName,
     162                               const char *pcszName,
    163163                               USHORT usFormat,
    164164                               PFONTMETRICS pFontMetrics);
     
    166166                                       LONG lSize,
    167167                                       BOOL fFamily,
    168                                        PSZ pszName,
     168                                       const char *pcszName,
    169169                                       USHORT usFormat,
    170170                                       PFONTMETRICS pFontMetrics);
  • trunk/include/helpers/linklist.h

    r74 r91  
    140140    typedef LSTINIT *PLSTINIT;
    141141
    142     #ifdef __DEBUG_MALLOC_ENABLED__ // setup.h, helpers\memdebug.c
     142    #if (defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_LIST_MALLOC)) // setup.h, helpers\memdebug.c
    143143        PLINKLIST XWPENTRY lstCreateDebug(BOOL fItemsFreeable,
    144144                                          const char *file,
     
    194194    typedef LSTINDEXFROMITEM *PLSTINDEXFROMITEM;
    195195
    196     #ifdef __DEBUG_MALLOC_ENABLED__ // setup.h, helpers\memdebug.c
     196    #if (defined(__DEBUG_MALLOC_ENABLED__) && !defined(DONT_REPLACE_LIST_MALLOC)) // setup.h, helpers\memdebug.c
    197197        PLISTNODE XWPENTRY lstAppendItemDebug(PLINKLIST pList,
    198198                                              void* pNewItemData,
  • trunk/include/helpers/memdebug.h

    r71 r91  
    44 *      header file for memdebug.c.
    55 *      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.
    617 *
    718 *      Note: Version numbering in this file relates to XWorkplace version
  • trunk/include/helpers/stringh.h

    r81 r91  
    3232    #define STRINGH_HEADER_INCLUDED
    3333
    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
    3545
    3646    int strhcmp(const char *p1, const char *p2);
     
    4858    BOOL strhIsDecimal(PSZ psz);
    4959
    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
    5170
    5271    PSZ strhExtract(PSZ pszBuf,
  • trunk/include/helpers/winh.h

    r85 r91  
    201201                                      SHORT afStyle,
    202202                                      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;
    203210
    204211    HWND XWPENTRY winhInsertSubmenu(HWND hwndMenu,
     
    211218                                    USHORT afItemStyle,
    212219                                    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;
    213230
    214231    BOOL XWPENTRY winhSetMenuCondCascade(HWND hwndMenu,
  • trunk/include/helpers/xstring.h

    r74 r91  
    5050        ULONG           ulDelta;        // allocation delta (0 = none)
    5151                                        // 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
    5264    } XSTRING, *PXSTRING;
    5365
    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);
    5586    typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate);
    56     typedef XSTRINIT *PXSTRINIT;
     87    typedef XSTRINIT *PXSTRINIT; */
    5788
    5889    void XWPENTRY xstrInitSet(PXSTRING pxstr, PSZ pszNew);
Note: See TracChangeset for help on using the changeset viewer.