IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psList.c

    r2204 r2273  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-27 00:57:31 $
     8 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-04 01:04:57 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    136136
    137137        if (position == NULL) {
    138             psError(__func__, "%s failed to move cursor to specified location (%d)", __func__, location);
     138            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     139                    "Failed to move cursor to specified location (%d)", location);
    139140            position = list->head;         // since we no list->size != 0, this must be non-NULL
    140141        }
     
    173174
    174175    if (list == NULL) {
    175         psError(__func__, "list parameter found to be NULL in %s", __func__);
     176        psError(PS_ERR_BAD_PARAMETER_NULL, true, "list parameter found to be NULL.");
    176177        return false;
    177178    }
     
    194195
    195196        if (location == PS_LIST_UNKNOWN) {
    196             psError(__func__, "Failed to find item in given psList.");
     197            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Failed to find item in given psList.");
    197198            pthread_mutex_unlock(&list->lock)
    198199            ;
     
    206207
    207208    if (elem == NULL) {
    208         psError(__func__, "Couldn't position to given index (%d) to remove element from list.", location);
     209        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     210                "Couldn't position to given index (%d) to remove element from list.", location);
    209211        pthread_mutex_unlock(&list->lock)
    210212        ;
     
    257259
    258260    if (list == NULL) {
    259         psError(__func__, "Unexpected null pointer for psList parameter (%s:%d).", __FILE__, __LINE__);
     261        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     262                "Unexpected null pointer for psList parameter.");
    260263        return;
    261264    }
     
    314317    default:
    315318        if (where <= PS_LIST_HEAD) {   // bascially same as PS_LIST_UNKNOWN above
    316             psError(__func__, "Can't move to an unknown position.  Not moving the iterator position.");
     319            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     320                    "Can't move to an unknown position.  Not moving the iterator position.");
    317321        } else {
    318322            cursor = listGetIterator(list);
Note: See TracChangeset for help on using the changeset viewer.