IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psTrace.c

    r1407 r1440  
    1010 *  @author George Gusciora, MHPCC
    1111 *
    12  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-07 00:06:06 $
     12 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-09 23:34:58 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4545#    include "psError.h"
    4646
    47 static p_psComponent *p_psCroot = NULL; // The root of the trace component
     47static p_psComponent* p_psCroot = NULL; // The root of the trace component
    4848static FILE *p_psTraceFP = NULL;        // File destination for messages.
    4949
    50 static void componentFree(p_psComponent * comp);
    51 static p_psComponent *componentAlloc(const char *name, int level);
     50static void componentFree(p_psComponent* comp);
     51static p_psComponent* componentAlloc(const char *name, int level);
    5252
    5353/*****************************************************************************
    5454componentAlloc(): allocate memory for a new node, and initialize members.
    5555 *****************************************************************************/
    56 static p_psComponent *componentAlloc(const char *name, int level)
    57 {
    58     p_psComponent *comp = psAlloc(sizeof(p_psComponent));
     56static p_psComponent* componentAlloc(const char *name, int level)
     57{
     58    p_psComponent* comp = psAlloc(sizeof(p_psComponent));
    5959
    6060    p_psMemSetDeallocator(comp, (psFreeFcn) componentFree);
     
    7070nodes as well.
    7171 *****************************************************************************/
    72 static void componentFree(p_psComponent * comp)
     72static void componentFree(p_psComponent* comp)
    7373{
    7474    if (comp == NULL) {
     
    9999Set all trace levels to zero.
    100100 *****************************************************************************/
    101 void p_psTraceReset(p_psComponent * currentNode)
     101void p_psTraceReset(p_psComponent* currentNode)
    102102{
    103103    int i = 0;
     
    147147    char *pname = name;
    148148    char *firstComponent = NULL;        // first component of name
    149     p_psComponent *currentNode = p_psCroot;
     149    p_psComponent* currentNode = p_psCroot;
    150150    int nodeExists = 0;
    151151
     
    182182        if (nodeExists == 0) {
    183183            currentNode->subcomp = psRealloc(currentNode->subcomp,
    184                                              (currentNode->n + 1) * sizeof(p_psComponent *));
     184                                             (currentNode->n + 1) * sizeof(p_psComponent* ));
    185185            currentNode->n = (currentNode->n) + 1;
    186186
     
    234234    char *pname = name;
    235235    char *firstComponent = NULL;        // first component of name
    236     p_psComponent *currentNode = p_psCroot;
     236    p_psComponent* currentNode = p_psCroot;
    237237    int i = 0;
    238238
     
    303303 null
    304304 *****************************************************************************/
    305 static void doPrintTraceLevels(const p_psComponent * comp, int depth)
     305static void doPrintTraceLevels(const p_psComponent* comp, int depth)
    306306{
    307307    int i = 0;
Note: See TracChangeset for help on using the changeset viewer.