IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2005, 4:36:42 PM (21 years ago)
Author:
desonia
Message:

prepared the config/data directories to be installed into standard areas.

File:
1 edited

Legend:

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

    r3115 r3182  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-02-03 00:54:11 $
     11 *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-02-10 02:36:42 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4040#ifndef PS_NO_TRACE
    4141
     42#include <unistd.h>
    4243#include <stdlib.h>
    4344#include <stdio.h>
     
    146147/*****************************************************************************
    147148componentAdd(): Adds the component named "addNodeName" to the root tree.
    148  
    149 NOTE: replace the call to strsep() with a call to strtok(), which conforms
    150 to ANSI-C.
    151149 *****************************************************************************/
    152150static psBool componentAdd(const char *addNodeName, psS32 level)
     
    180178
    181179    strcpy(name, addNodeName);
    182     pname = &name[1];
     180    pname = name+1;
    183181    // Iterate through the components of addNodeName.  Strip off the first
    184182    // component of the name, find that in the root tree, or add it if it
     
    186184
    187185    while (pname != NULL) {
    188         firstComponent = strsep(&pname, ".");
     186        firstComponent = pname;
     187        pname = strtok(pname, ".");
     188        if (pname != NULL) {
     189            *pname = '\0';
     190            pname++;
     191        }
    189192        nodeExists = 0;
    190193        for (i = 0; i < currentNode->n; i++) {
     
    324327    pname = &name[1];
    325328    while (pname != NULL) {
    326         firstComponent = strsep(&pname, ".");
     329        firstComponent = pname;
     330        pname = strtok(pname, ".");
     331        if (pname != NULL) {
     332            *pname = '\0';
     333            pname++;
     334        }
    327335        for (i = 0; i < currentNode->n; i++) {
    328336            if (NULL == currentNode->subcomp[i]) {
Note: See TracChangeset for help on using the changeset viewer.