IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 13, 2006, 4:26:25 PM (20 years ago)
Author:
drobbin
Message:

Added str check test for error handling of psString fxns, namely stringSubstitute. Edited memory and type to include MemCheck's for string, line, and region. Added is_psType function to check for NULLs and native types first. <-will have to update all fxns next wrt to this change. Added psStringAlloc, stringFree, regionFree. Added doxygen comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLine.c

    r7380 r7901  
    3939}
    4040
    41 bool psLineAdd(psLine *line, const char *format, ...)
     41bool psLineAdd(psLine *line,
     42               const char *format,
     43               ...)
    4244{
    4345    if (!line) {
     
    5860    return true;
    5961}
     62
     63bool psMemCheckLine(psPtr ptr)
     64{
     65    if (!is_psType(ptr)) {
     66        return false;
     67    }
     68    return ( psMemGetDeallocator(ptr) == (psFreeFunc)lineFree );
     69}
     70
Note: See TracChangeset for help on using the changeset viewer.