IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psErrorCodes.c

    r2129 r2204  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-14 21:14:58 $
     9 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-27 00:57:31 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5959    // first, search the static error codes
    6060
    61     int n = 0;
     61    psS32 n = 0;
    6262    while(staticErrorCodes[n].code != PS_ERR_N_ERR_CLASSES &&
    6363            staticErrorCodes[n].code != code) {
     
    8888static void freeErrorDescription(psErrorDescription* err)
    8989{
    90     psFree((void*)err->description);
     90    psFree((psPtr)err->description);
    9191}
    9292
     
    125125
    126126void psErrorRegister(const psErrorDescription* errors,
    127                      int nerror)
     127                     psS32 nerror)
    128128{
    129129    if (nerror < 1) {
     
    143143    }
    144144
    145     for (int i=0;i<nerror;i++) {
     145    for (psS32 i=0;i<nerror;i++) {
    146146        psErrorDescription* err = psErrorDescriptionAlloc(
    147147                                      errors[i].code, errors[i].description);
    148148        p_psMemSetPersistent(err,true);
    149         p_psMemSetPersistent((void*)err->description,true);
     149        p_psMemSetPersistent((psPtr)err->description,true);
    150150        if (! psListAdd(dynamicErrorCodes,
    151151                        PS_LIST_HEAD,
     
    162162}
    163163
    164 bool p_psErrorUnregister(psErrorCode code)
     164psBool p_psErrorUnregister(psErrorCode code)
    165165{
    166166    // Check input argument is non-negative
     
    179179    }
    180180
    181     return psListRemove(dynamicErrorCodes,PS_LIST_UNKNOWN,(void*)desc);
     181    return psListRemove(dynamicErrorCodes,PS_LIST_UNKNOWN,(psPtr)desc);
    182182}
Note: See TracChangeset for help on using the changeset viewer.