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

    r2204 r2273  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-27 00:57:31 $
     12*  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-11-04 01:04:57 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7070
    7171    if (in == NULL) {
    72         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRealloc",
    73                    PS_ERR_BAD_PARAMETER_NULL, true,
    74                    PS_ERRORTEXT_psVector_REALLOC_NULL);
     72        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     73                PS_ERRORTEXT_psVector_REALLOC_NULL);
    7574        return NULL;
    7675    } else if (in->nalloc != nalloc) {     // No need to realloc to same size
     
    9998            in->type.dimen !=  PS_DIMEN_TRANSV) {
    10099        psFree(in);
    101         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRecycle",
    102                    PS_ERR_BAD_PARAMETER_TYPE, true,
    103                    PS_ERRORTEXT_psVector_NOT_A_VECTOR);
     100        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     101                PS_ERRORTEXT_psVector_NOT_A_VECTOR);
    104102        return NULL;
    105103    }
     
    122120{
    123121    if (in == NULL) {
    124         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort",
    125                    PS_ERR_BAD_PARAMETER_NULL, true,
    126                    PS_ERRORTEXT_psVector_SORT_NULL);
     122        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     123                PS_ERRORTEXT_psVector_SORT_NULL);
    127124        psFree(out);
    128125        return NULL;
     
    183180                char* typeStr; \
    184181                PS_TYPE_NAME(typeStr,type); \
    185                 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageCopy", \
    186                            PS_ERR_BAD_PARAMETER_TYPE, true, \
    187                            PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \
    188                            typeStr); \
     182                psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
     183                        PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \
     184                        typeStr); \
    189185                psFree(out); \
    190186            } \
     
    209205            char* typeStr;
    210206            PS_TYPE_NAME(typeStr,type);
    211             psErrorMsg(PS_ERRORNAME_DOMAIN "psImageCopy",
    212                        PS_ERR_BAD_PARAMETER_TYPE, true,
    213                        PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
    214                        typeStr);
     207            psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     208                    PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
     209                    typeStr);
    215210            psFree(out);
    216211
     
    232227
    233228    if (inVector == NULL) {
    234         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort",
    235                    PS_ERR_BAD_PARAMETER_NULL, true,
    236                    PS_ERRORTEXT_psVector_SORT_NULL);
     229        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     230                PS_ERRORTEXT_psVector_SORT_NULL);
    237231        psFree(outVector);
    238232        return NULL;
     
    300294        break;
    301295    default:
    302         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort",
    303                    PS_ERR_BAD_PARAMETER_TYPE, true,
    304                    PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
    305                    inType);
     296        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     297                PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
     298                inType);
    306299    }
    307300
     
    317310
    318311    if (inVector == NULL) {
    319         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSortIndex",
    320                    PS_ERR_BAD_PARAMETER_NULL, true,
    321                    PS_ERRORTEXT_psVector_SORT_NULL);
     312        psError(PS_ERR_BAD_PARAMETER_NULL, true,
     313                PS_ERRORTEXT_psVector_SORT_NULL);
    322314        psFree(outVector);
    323315        return NULL;
     
    400392        break;
    401393    default:
    402         psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSortIndex",
    403                    PS_ERR_BAD_PARAMETER_TYPE, true,
    404                    PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
    405                    inType);
     394        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     395                PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE,
     396                inType);
    406397    }
    407398
Note: See TracChangeset for help on using the changeset viewer.