IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2005, 3:09:57 PM (21 years ago)
Author:
Paul Price
Message:

Adding const qualifiers where missing in the docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_050513/psLib/src/collections/psArray.c

    r3933 r3966  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.27.4.1 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-05-13 22:30:02 $
     11 *  @version $Revision: 1.27.4.2 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-05-19 01:09:56 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8888psArray* psArrayAdd(psArray* psArr,
    8989                    int delta,
    90                     psPtr data)
     90                    const psPtr data)
    9191{
    9292    if (psArr == NULL) {
     
    110110
    111111psBool psArrayRemove(psArray* psArr,
    112                      psPtr data)
     112                     const psPtr data)
    113113{
    114114    psBool success = false;
     
    161161psBool psArraySet(psArray* in,                       ///< input array to set element in
    162162                  psU32 position,                    ///< the element position to set
    163                   void* value)                       ///< the value to set it to
    164 {
    165     if (in == NULL)
    166     {
     163                  const void* value) ///< the value to set it to
     164{
     165    if (in == NULL) {
    167166        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    168167                PS_ERRORTEXT_psArray_ARRAY_NULL);
     
    170169    }
    171170
    172     if (position >= in->nalloc)
    173     {
     171    if (position >= in->nalloc) {
    174172        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    175173                PS_ERRORTEXT_psArray_POSITION_BEYOND_NALLOC,
     
    185183
    186184/// Get an element in the array.
    187 void* psArrayGet(psArray* in, psU32 position )
     185void* psArrayGet(const psArray* in, psU32 position )
    188186{
    189187    if (in == NULL) {
Note: See TracChangeset for help on using the changeset viewer.