Ignore:
Timestamp:
Dec 9, 2000, 8:19:42 PM (25 years ago)
Author:
umoeller
Message:

Major updates; timers, LVM, miscellaneous.

File:
1 edited

Legend:

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

    r13 r14  
    1414/*
    1515 *      Copyright (C) 1999-2000 Ulrich M”ller.
    16  *      This file is part of the XWorkplace source package.
    17  *      XWorkplace is free software; you can redistribute it and/or modify
     16 *      This file is part of the "XWorkplace helpers" source package.
     17 *      This is free software; you can redistribute it and/or modify
    1818 *      it under the terms of the GNU General Public License as published
    1919 *      by the Free Software Foundation, in version 2 as it comes in the
     
    3232    #define XSTRING_HEADER_INCLUDED
    3333
     34    #ifndef XWPENTRY
     35        #error You must define XWPENTRY to contain the standard linkage for the XWPHelpers.
     36    #endif
     37
    3438    /*
    3539     *@@ XSTRING:
     
    4650    } XSTRING, *PXSTRING;
    4751
    48     void xstrInit(PXSTRING pxstr,
    49                   ULONG ulPreAllocate);
     52    void XWPENTRY xstrInit(PXSTRING pxstr, ULONG ulPreAllocate);
     53    typedef void XWPENTRY XSTRINIT(PXSTRING pxstr, ULONG ulPreAllocate);
     54    typedef XSTRINIT *PXSTRINIT;
    5055
    51     void xstrInitSet(PXSTRING pxstr,
    52                      PSZ pszNew);
     56    void XWPENTRY xstrInitSet(PXSTRING pxstr, PSZ pszNew);
    5357
    54     void xstrInitCopy(PXSTRING pxstr,
    55                       const char *pcszSource);
     58    void XWPENTRY xstrInitCopy(PXSTRING pxstr, const char *pcszSource);
    5659
    57     void xstrClear(PXSTRING pxstr);
     60    void XWPENTRY xstrClear(PXSTRING pxstr);
     61    typedef void XWPENTRY XSTRCLEAR(PXSTRING pxstr);
     62    typedef XSTRCLEAR *PXSTRCLEAR;
    5863
    59     PXSTRING xstrCreate(ULONG ulPreAllocate);
     64    PXSTRING XWPENTRY xstrCreate(ULONG ulPreAllocate);
    6065
    61     VOID xstrFree(PXSTRING pxstr);
     66    VOID XWPENTRY xstrFree(PXSTRING pxstr);
    6267
    63     ULONG xstrset(PXSTRING pxstr,
    64                   PSZ pszNew);
     68    ULONG XWPENTRY xstrset(PXSTRING pxstr, PSZ pszNew);
    6569
    66     ULONG xstrcpy(PXSTRING pxstr,
    67                   const char *pcszSource);
     70    ULONG XWPENTRY xstrcpy(PXSTRING pxstr, const char *pcszSource);
    6871
    69     ULONG xstrcat(PXSTRING pxstr,
    70                   const char *pcszSource);
     72    ULONG XWPENTRY xstrcat(PXSTRING pxstr, const char *pcszSource);
     73    typedef ULONG XWPENTRY XSTRCAT(PXSTRING pxstr, const char *pcszSource);
     74    typedef XSTRCAT *PXSTRCAT;
    7175
    7276    /*
     
    7983    #define xstrIsString(psz) ( (psz != 0) && (*(psz) != 0) )
    8084
    81     PSZ xstrFindWord(const XSTRING *pxstr,
    82                      ULONG ulOfs,
    83                      const XSTRING *pstrFind,
    84                      size_t *pShiftTable,
    85                      PBOOL pfRepeatFind,
    86                      const char *pcszBeginChars,
    87                      const char *pcszEndChars);
     85    PSZ XWPENTRY xstrFindWord(const XSTRING *pxstr,
     86                              ULONG ulOfs,
     87                              const XSTRING *pstrFind,
     88                              size_t *pShiftTable,
     89                              PBOOL pfRepeatFind,
     90                              const char *pcszBeginChars,
     91                              const char *pcszEndChars);
    8892
    89     ULONG xstrrpl(PXSTRING pxstr,
    90                   PULONG pulOfs,
    91                   const XSTRING *pstrSearch,
    92                   const XSTRING *pstrReplace,
    93                   size_t *pShiftTable,
    94                   PBOOL pfRepeatFind);
     93    ULONG XWPENTRY xstrrpl(PXSTRING pxstr,
     94                           PULONG pulOfs,
     95                           const XSTRING *pstrSearch,
     96                           const XSTRING *pstrReplace,
     97                           size_t *pShiftTable,
     98                           PBOOL pfRepeatFind);
    9599
    96     ULONG xstrcrpl(PXSTRING pxstr,
    97                    PULONG pulOfs,
    98                    const char *pcszSearch,
    99                    const char *pcszReplace);
     100    ULONG XWPENTRY xstrcrpl(PXSTRING pxstr,
     101                            PULONG pulOfs,
     102                            const char *pcszSearch,
     103                            const char *pcszReplace);
    100104#endif
    101105
Note: See TracChangeset for help on using the changeset viewer.