Changeset 164 for trunk/include


Ignore:
Timestamp:
May 13, 2002, 7:49:28 AM (23 years ago)
Author:
umoeller
Message:

Massive pager rework.

Location:
trunk/include/helpers
Files:
3 edited

Legend:

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

    r121 r164  
    7979        PFN             pfnHandler;         // as in EXCEPTIONREGISTRATIONRECORD
    8080        jmp_buf         jmpThread;          // additional buffer for setjmp
    81         // PFNEXCONKILL    pfnOnKill;          // subroutine to call upon process/thread termination
     81        EXCEPTIONREPORTRECORD err;          // exception handlers copy the report rec here
    8282        PVOID           pvUser;             // user ptr
    8383    } EXCEPTIONREGISTRATIONRECORD2;
  • trunk/include/helpers/gpih.h

    r154 r164  
    175175                                              PCH pchString);
    176176    typedef GPIHCHARSTRINGPOSAT *PGPIHCHARSTRINGPOSAT;
     177
     178    /*
     179     *@@ BKGNDINFO:
     180     *      background information passed into
     181     *      gpihFillBackground.
     182     *
     183     *      The color flags apply always. The
     184     *      bitmap flags apply only if hbm is
     185     *      not NULLHANDLE.
     186     *
     187     *@@added V0.9.19 (2002-05-07) [umoeller]
     188     */
     189
     190    typedef struct _BKGNDINFO
     191    {
     192        ULONG       flPaintMode;
     193                // a combination of one of the color
     194                // flags and one of the bitmap flags:
     195                // a) color flags
     196                #define PMOD_COLORMASK      0x000F
     197                #define PMOD_SOLID          0x0000  // solid color, use lcol1
     198                #define PMOD_TOPBOTTOM      0x0001  // spectrum, lcol1 = top, lcol2 = bottom
     199                #define PMOD_LEFTRIGHT      0x0002  // spectrum, lcol1 = left, lcol2 = right
     200                // b) bitmap flags
     201                #define PMOD_BMPMASK        0x00F0
     202                #define PMOD_BMP_CENTER     0x0000  // center the bitmap
     203                #define PMOD_BMP_SCALE_X    0x0002  // scale the bitmap to size in prcl,
     204                                                    // respect lScale
     205                #define PMOD_BMP_TILE       0x0004  // tile the bitmap
     206
     207        LONG        lcol1,              // color 1 (RGB)
     208                    lcol2;              // color 2 (RGB)
     209
     210        HBITMAP     hbm;                // bitmap or NULLHANDLE if none
     211        ULONG       lScale;             // only with PMOD_BMP_SCALE_X: how many times
     212                                        // the bmp should be scaled (as with WPS
     213                                        // folder "Background" page); this cannot
     214                                        // be zero then
     215
     216    } BKGNDINFO, *PBKGNDINFO;
     217
     218    VOID gpihFillBackground(HPS hps,
     219                            PRECTL prcl,
     220                            PBKGNDINFO pInfo);
    177221
    178222    /* ******************************************************************
  • trunk/include/helpers/memdebug.h

    r123 r164  
    4343
    4444    #ifndef __stdlib_h           // <stdlib.h>
    45         #error stdlib.h must be included before memdebug.h.
     45        // #error stdlib.h must be included before memdebug.h.
     46        typedef unsigned int size_t;
     47    #endif
     48
     49    #ifndef NULL
     50       #if (defined(__EXTENDED__)  || defined( __cplusplus ))
     51          #define NULL 0
     52       #else
     53          #define NULL ((void *)0)
     54       #endif
    4655    #endif
    4756
     
    146155
    147156        #ifndef DONT_REPLACE_MALLOC
     157
     158            #ifdef malloc
     159                #undef malloc
     160            #endif
    148161            #define malloc(ul) memdMalloc(ul, __FILE__, __LINE__, __FUNCTION__)
     162
     163            #ifdef calloc
     164                #undef calloc
     165            #endif
    149166            #define calloc(n, size) memdCalloc(n, size, __FILE__, __LINE__, __FUNCTION__)
     167
     168            #ifdef realloc
     169                #undef realloc
     170            #endif
    150171            #define realloc(p, ul) memdRealloc(p, ul, __FILE__, __LINE__, __FUNCTION__)
     172
     173            #ifdef free
     174                #undef free
     175            #endif
    151176            #define free(p) memdFree(p, __FILE__, __LINE__, __FUNCTION__)
    152177
     
    159184            #endif
    160185
     186            // tell other headers that these have been replaced
    161187            #define __DEBUG_MALLOC_ENABLED__
    162188
Note: See TracChangeset for help on using the changeset viewer.