IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 24, 2006, 5:06:56 PM (20 years ago)
Author:
jhoblitt
Message:

minor cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pzgetexp.c

    r6974 r6976  
    4343    }
    4444
     45    // XXX debugging
    4546    fprintf(stderr, "cmd is: %s\n", cmd);
    4647
     
    107108    PS_ASSERT_PTR_NON_NULL(str, NULL);
    108109
    109     psList *lines = psStringSplit(str, "\n");
     110    psList *doc = psStringSplit(str, "\n");
    110111
    111     psListIterator *lineCursor = psListIteratorAlloc(lines, 0, false);
     112    psListIterator *lineCursor = psListIteratorAlloc(doc, 0, false);
    112113
    113     psArray *summitExps = psArrayAlloc(psListLength(lines));
    114     psString    item;
    115     while ((item = psListGetAndIncrement(lineCursor))) {
    116         printf("-> %s\n", item);
     114    psArray *summitExps = psArrayAlloc(psListLength(doc));
     115    psString line;
     116    while ((line = psListGetAndIncrement(lineCursor))) {
     117        // XXX debugging
     118        printf("-> %s\n", line);
    117119
    118120        // split line into tokens
    119         psList *tokens = psStringSplit(item, " ");
     121        psList *tokens = psStringSplit(line, " ");
    120122
    121123        // check to see if this line is a comment (or if the first token is
     
    160162   
    161163    psFree(lineCursor);
    162     psFree(lines);
     164    psFree(doc);
    163165
    164166    return summitExps;
Note: See TracChangeset for help on using the changeset viewer.