IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 2:06:06 PM (22 years ago)
Author:
desonia
Message:

another attempt to get astyle to get it right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psArray.h

    r1228 r1407  
     1
    12/** @file  psArray.h
    23 *
     
    1112 *  @author Ross Harman, MHPCC
    1213 *
    13  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-07-15 22:18:02 $
     14 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-08-07 00:06:06 $
    1516 *
    1617 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1819
    1920#ifndef PS_ARRAY_H
    20 #define PS_ARRAY_H
     21#    define PS_ARRAY_H
    2122
    22 #include "psType.h"
    23 #include "psCompare.h"
     23#    include "psType.h"
     24#    include "psCompare.h"
    2425
    2526/// @addtogroup Array
     
    3334typedef struct
    3435{
    35     unsigned int nalloc;                ///< Total number of elements available.
    36     unsigned int n;                     ///< Number of elements in use.
    37     psPTR* data;                        ///< An Array of pointer elements
     36    unsigned int nalloc;        // /< Total number of elements available.
     37    unsigned int n;             // /< Number of elements in use.
     38    psPTR *data;                // /< An Array of pointer elements
    3839}
    3940psArray;
    4041
    4142/*****************************************************************************/
     43
    4244/* FUNCTION PROTOTYPES                                                       */
     45
    4346/*****************************************************************************/
    4447
     
    5154 *
    5255 */
    53 psArray *psArrayAlloc(
    54     unsigned int nalloc                 ///< Total number of elements to make available.
    55 );
     56psArray *psArrayAlloc(unsigned int nalloc       // /< Total number of elements to make available.
     57                     );
    5658
    5759/** Reallocate an array.
     
    6365 *
    6466 */
    65 psArray *psArrayRealloc(
    66     unsigned int nalloc,                ///< Total number of elements to make available.
    67     psArray *restrict psArr            ///< array to reallocate.
    68 );
     67psArray *psArrayRealloc(unsigned int nalloc,    // /< Total number of elements to make available.
     68                        psArray * restrict psArr        // /< array to reallocate.
     69                       );
    6970
    7071/** Deallocate/Dereference elements of an array.
     
    7576 *
    7677 */
    77 void psArrayElementFree(
    78     psArray *restrict psArr    ///< Void pointer array to destroy.
    79 );
     78void psArrayElementFree(psArray * restrict psArr        // /< Void pointer array to destroy.
     79                       );
    8080
    8181/** Sort the array according to an external compare function.
     
    8686 *  @return psArray*       The sorted array.
    8787 */
    88 psArray* psArraySort(psArray* in, psComparePtrFcn compare);
     88psArray *psArraySort(psArray * in, psComparePtrFcn compare);
    8989
    9090/// @}
Note: See TracChangeset for help on using the changeset viewer.