Changeset 132 for trunk/include/helpers


Ignore:
Timestamp:
Jan 19, 2002, 11:50:39 AM (24 years ago)
Author:
umoeller
Message:

Misc changes.

Location:
trunk/include/helpers
Files:
4 edited

Legend:

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

    r117 r132  
    6363    #define SZL_AUTOSIZE                (-1)
    6464
    65     #define CTL_COMMON_FONT             ((const char *)-1)
     65    #define CTL_COMMON_FONT             ((PCSZ)-1)
    6666
    6767    #define ROW_VALIGN_MASK             0x0003
     
    117117
    118118    } CONTROLDEF, *PCONTROLDEF;
     119
     120    typedef const struct _CONTROLDEF *PCCONTROLDEF;
    119121
    120122    /*
     
    178180    } DLGHITEM, *PDLGHITEM;
    179181
     182    typedef const struct _DLGHITEM *PCDLGHITEM;
     183
    180184    /* ******************************************************************
    181185     *
     
    256260                                  ULONG flCreateFlags,
    257261                                  PFNWP pfnwpDialogProc,
    258                                   const char *pcszDlgTitle,
    259                                   PDLGHITEM paDlgItems,
     262                                  PCSZ pcszDlgTitle,
     263                                  PCDLGHITEM paDlgItems,
    260264                                  ULONG cDlgItems,
    261265                                  PVOID pCreateParams,
    262                                   const char *pcszControlsFont);
     266                                  PCSZ pcszControlsFont);
    263267    typedef APIRET XWPENTRY DLGHCREATEDLG(HWND *phwndDlg,
    264268                                          HWND hwndOwner,
    265269                                          ULONG flCreateFlags,
    266270                                          PFNWP pfnwpDialogProc,
    267                                           const char *pcszDlgTitle,
    268                                           PDLGHITEM paDlgItems,
     271                                          PCSZ pcszDlgTitle,
     272                                          PCDLGHITEM paDlgItems,
    269273                                          ULONG cDlgItems,
    270274                                          PVOID pCreateParams,
    271                                           const char *pcszControlsFont);
     275                                          PCSZ pcszControlsFont);
    272276    typedef DLGHCREATEDLG *PDLGHCREATEDLG;
    273277
    274278    APIRET dlghFormatDlg(HWND hwndDlg,
    275                          PDLGHITEM paDlgItems,
     279                         PCDLGHITEM paDlgItems,
    276280                         ULONG cDlgItems,
    277                          const char *pcszControlsFont,
     281                         PCSZ pcszControlsFont,
    278282                         ULONG flFlags);
    279283
     
    311315
    312316    APIRET dlghAppendToArray(PDLGARRAY pArray,
    313                              DLGHITEM *paItems,
     317                             PCDLGHITEM paItems,
    314318                             ULONG cItems);
    315319
     
    368372                                HWND hwndOwner,
    369373                                HPOINTER hptrIcon,
    370                                 const char *pcszTitle,
    371                                 const char *pcszMessage,
     374                                PCSZ pcszTitle,
     375                                PCSZ pcszMessage,
    372376                                ULONG flFlags,
    373                                 const char *pcszFont,
     377                                PCSZ pcszFont,
    374378                                const MSGBOXSTRINGS *pStrings,
    375379                                PULONG pulAlarmFlag);
     
    377381    ULONG dlghMessageBox(HWND hwndOwner,
    378382                         HPOINTER hptrIcon,
    379                          const char *pcszTitle,
    380                          const char *pcszMessage,
     383                         PCSZ pcszTitle,
     384                         PCSZ pcszMessage,
    381385                         ULONG flFlags,
    382                          const char *pcszFont,
     386                         PCSZ pcszFont,
    383387                         const MSGBOXSTRINGS *pStrings);
    384388
     
    388392
    389393    PSZ dlghTextEntryBox(HWND hwndOwner,
    390                          const char *pcszTitle,
    391                          const char *pcszDescription,
    392                          const char *pcszDefault,
    393                          const char *pcszOK,
    394                          const char *pcszCancel,
     394                         PCSZ pcszTitle,
     395                         PCSZ pcszDescription,
     396                         PCSZ pcszDefault,
     397                         PCSZ pcszOK,
     398                         PCSZ pcszCancel,
    395399                         ULONG ulMaxLen,
    396400                         ULONG fl,
    397                          const char *pcszFont);
     401                         PCSZ pcszFont);
    398402
    399403    /* ******************************************************************
  • trunk/include/helpers/dosh.h

    r131 r132  
    219219     ********************************************************************/
    220220
     221    APIRET doshQueryProcAddr(PCSZ pcszModuleName,
     222                             ULONG ulOrdinal,
     223                             PFN *ppfn);
     224
    221225    /*
    222226     *@@ RESOLVEFUNCTION:
     
    233237    } RESOLVEFUNCTION, *PRESOLVEFUNCTION;
    234238
    235     APIRET doshResolveImports(PSZ pszModuleName,
     239    typedef const struct _RESOLVEFUNCTION *PCRESOLVEFUNCTION;
     240
     241    APIRET doshResolveImports(PCSZ pcszModuleName,
    236242                              HMODULE *phmod,
    237                               PRESOLVEFUNCTION paResolves,
     243                              PCRESOLVEFUNCTION paResolves,
    238244                              ULONG cResolves);
    239245
     
    694700     ********************************************************************/
    695701
    696     BOOL doshMatch(const char *pcszMask,
    697                    const char *pcszName);
     702    BOOL doshMatch(PCSZ pcszMask,
     703                   PCSZ pcszName);
    698704
    699705#endif
  • trunk/include/helpers/standards.h

    r129 r132  
    8181     */
    8282
    83     #define FREE(ptr) if ((ptr)) { free(ptr); ptr = NULL; }
     83    #define FREE(ptr)  { if ((ptr)) { free(ptr); ptr = NULL; } }
    8484
    8585    /*
     
    104104     */
    105105
    106     #define ARRAYITEMCOUNT(array) sizeof(array) / sizeof(array[0])
     106    #define ARRAYITEMCOUNT(array) (sizeof(array) / sizeof(array[0]))
    107107
    108108    /*
  • trunk/include/helpers/xstring.h

    r129 r132  
    8686    typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate);
    8787    typedef XSTRINIT *PXSTRINIT; */
     88
     89    void xstrInitSet2(PXSTRING pxstr, PSZ pszNew, ULONG ulNewLength);
    8890
    8991    void XWPENTRY xstrInitSet(PXSTRING pxstr, PSZ pszNew);
     
    132134    typedef XSTRFREE *PXSTRFREE;
    133135
     136    ULONG XWPENTRY xstrset2(PXSTRING pxstr, PSZ pszNew, ULONG ulNewLength);
     137
    134138    ULONG XWPENTRY xstrset(PXSTRING pxstr, PSZ pszNew);
    135139    typedef ULONG XWPENTRY XSTRSET(PXSTRING pxstr, PSZ pszNew);
Note: See TracChangeset for help on using the changeset viewer.