IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2004, 2:09:06 PM (22 years ago)
Author:
desonia
Message:

converted files to new psError style (psErrorMsg). Removed any psAborts
from non-memory allocation code.

File:
1 edited

Legend:

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

    r1407 r1713  
    99 *  @author Eric Van Alst, MHPCC
    1010 *   
    11  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-08-07 00:06:06 $
     11 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-08 00:09:06 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1515 */
    1616
    17 /******************************************************************************/
    18 
    19 /*  INCLUDE FILES                                                             */
    20 
    21 /******************************************************************************/
    2217#include <stdlib.h>
    2318#include <string.h>
     
    2621#include "psError.h"
    2722
    28 /******************************************************************************/
    29 
    30 /*  DEFINE STATEMENTS                                                         */
    31 
    32 /******************************************************************************/
    33 
    34 // None
    35 
    36 /******************************************************************************/
    37 
    38 /*  TYPE DEFINITIONS                                                          */
    39 
    40 /******************************************************************************/
    41 
    42 // None
    43 
    44 /*****************************************************************************/
    45 
    46 /*  GLOBAL VARIABLES                                                         */
    47 
    48 /*****************************************************************************/
    49 
    50 // None
    51 
    52 /*****************************************************************************/
    53 
    54 /*  FILE STATIC VARIABLES                                                    */
    55 
    56 /*****************************************************************************/
    57 
    58 // None
    59 
    60 /*****************************************************************************/
    61 
    62 /*  FUNCTION IMPLEMENTATION - LOCAL                                          */
    63 
    64 /*****************************************************************************/
    65 
    66 // None
    67 
    68 /*****************************************************************************/
    69 
    70 /* FUNCTION IMPLEMENTATION - PUBLIC                                          */
    71 
    72 /*****************************************************************************/
     23#include "psSysUtilsErrors.h"
     24#define ERRORNAME_PREFIX PS_ERRORNAME_DOMAIN ".psString."
    7325
    7426char *psStringCopy(const char *str)
     
    8739    if (nChar < 0) {
    8840        // Log error message and return NULL
    89         psError(__FILE__, "psStringNCopy with negative count specified %d", nChar);
     41        psErrorMsg(ERRORNAME_PREFIX "psStringNCopy", PS_ERR_BAD_PARAMETER_VALUE, true,
     42                   PS_ERRORTEXT_psStringNCopy_NCHAR_NEGATIVE,
     43                   nChar);
    9044        return NULL;
    9145    }
Note: See TracChangeset for help on using the changeset viewer.