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/psHash.c

    r2221 r2273  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-10-27 23:31:43 $
     13*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-11-04 01:04:57 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    228228    // the way this procedure is called.
    229229    if ((table == NULL) || (key == NULL)) {
    230         psErrorMsg(PS_ERRORNAME_DOMAIN "doHashWork",
    231                    PS_ERR_BAD_PARAMETER_NULL, true,
    232                    PS_ERRORTEXT_psHash_KEY_NULL);
     230        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     231                PS_ERRORTEXT_psHash_KEY_NULL);
    233232        return NULL;
    234233    }
     
    249248    // anyway.
    250249    if ((hash < 0) || (hash >= table->nbucket)) {
    251         psError(__func__, "Internal hash function out of range (%d)", hash);
     250        psError(PS_ERR_UNKNOWN, true,
     251                "Internal hash function out of range (%d)", hash);
    252252    }
    253253    // ptr will have the correct hash bucket.
     
    347347{
    348348    if (table == NULL) {
    349         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashAdd",
    350                    PS_ERR_BAD_PARAMETER_NULL, true,
    351                    PS_ERRORTEXT_psHash_KEY_NULL);
     349        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     350                PS_ERRORTEXT_psHash_KEY_NULL);
    352351        return false;
    353352    }
    354353    if (key == NULL) {
    355         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashAdd",
    356                    PS_ERR_BAD_PARAMETER_NULL, true,
    357                    PS_ERRORTEXT_psHash_TABLE_NULL);
     354        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     355                PS_ERRORTEXT_psHash_TABLE_NULL);
    358356        return false;
    359357    }
    360358    if (data == NULL) {
    361         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashAdd",
    362                    PS_ERR_BAD_PARAMETER_NULL, true,
    363                    PS_ERRORTEXT_psHash_DATA_NULL);
     359        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     360                PS_ERRORTEXT_psHash_DATA_NULL);
    364361    }
    365362
     
    382379{
    383380    if (table == NULL) {
    384         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashLookup",
    385                    PS_ERR_BAD_PARAMETER_NULL, true,
    386                    PS_ERRORTEXT_psHash_KEY_NULL);
     381        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     382                PS_ERRORTEXT_psHash_KEY_NULL);
    387383        return NULL;
    388384    }
    389385    if (key == NULL) {
    390         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashLookup",
    391                    PS_ERR_BAD_PARAMETER_NULL, true,
    392                    PS_ERRORTEXT_psHash_TABLE_NULL);
     386        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     387                PS_ERRORTEXT_psHash_TABLE_NULL);
    393388        return NULL;
    394389    }
     
    414409
    415410    if (table == NULL) {
    416         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashRemove",
    417                    PS_ERR_BAD_PARAMETER_NULL, true,
    418                    PS_ERRORTEXT_psHash_TABLE_NULL);
     411        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     412                PS_ERRORTEXT_psHash_TABLE_NULL);
    419413        return false;
    420414    }
    421415    if (key == NULL) {
    422         psErrorMsg(PS_ERRORNAME_DOMAIN "psHashRemove",
    423                    PS_ERR_BAD_PARAMETER_NULL, true,
    424                    PS_ERRORTEXT_psHash_KEY_NULL);
     416        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     417                PS_ERRORTEXT_psHash_KEY_NULL);
    425418        return false;
    426419    }
Note: See TracChangeset for help on using the changeset viewer.