IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 8, 2007, 2:47:41 PM (19 years ago)
Author:
Paul Price
Message:

Adding some additional memory instrumentation. Adding warning about use of psStringAppend under certain conditions; can't trap all the dangerous uses, but can catch the really really dangerous ones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.h

    r14679 r15523  
    1111 * @author Joshua Hoblitt, University of Hawaii
    1212 *
    13  * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    14  * @date $Date: 2007-08-27 23:24:21 $
     13 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     14 * @date $Date: 2007-11-09 00:47:41 $
    1515 *
    1616 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    242242 *  @return psList*:    The list of (split) psStrings.
    243243 */
     244#ifdef DOXYGEN
    244245psList *psStringSplit(
    245246    const char *string,                ///< String to split
     
    247248    bool multipleAreSignificant        ///< Are multiple occurences significant?
    248249);
    249 
     250#else // ifdef DOXYGEN
     251psList *p_psStringSplit(
     252    const char *file,                   ///< File of caller
     253    unsigned int lineno,                ///< Line number of caller
     254    const char *func,                   ///< Function name of caller
     255    const char *string,                ///< String to split
     256    const char *splitters,             ///< Characters on which to split
     257    bool multipleAreSignificant        ///< Are multiple occurences significant?
     258    );
     259#define psStringSplit(string, splitters, multiple) \
     260      p_psStringSplit(__FILE__, __LINE__, __func__, string, splitters, multiple)
     261#endif // ifdef DOXYGEN
    250262
    251263/** Procedure to split the input string into a psArray of psStrings.
Note: See TracChangeset for help on using the changeset viewer.