IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6976


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

minor cleanups

Location:
trunk/ippTools/src
Files:
3 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;
  • trunk/ippTools/src/pzgetexpConfig.c

    r6876 r6976  
    3030        fprintf(stderr, "error parsing arguments\n");
    3131        printf("\nPan-STARRS Phase Z Search Tool\n");
    32         printf("Usage: %s -uri -inst -telescope\n\n", argv[0]);
     32        printf("Usage: %s -uri <uri> -inst <camera> -telescope <telescope>\n\n",
     33            argv[0]);
    3334        psArgumentHelp(args);
    3435        psFree(config);
  • trunk/ippTools/src/pzgetimfiles.c

    r6973 r6976  
    2323    psStringAppend(&cmd, "%s --uri %s", FILESET_LS_CMD, uri);
    2424
     25    // XXX debugging
    2526    fprintf(stderr, "cmd is: %s\n", cmd);
    2627
     
    157158    psString line;
    158159    while ((line = psListGetAndIncrement(lineCursor))) {
     160        // XXX debugging
    159161        printf("-> %s\n", line);
    160162
Note: See TracChangeset for help on using the changeset viewer.