IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32341


Ignore:
Timestamp:
Sep 6, 2011, 11:03:30 AM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20110710/Ohana/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/Ohana/src/opihi/pantasks/TaskOps.c

    r31666 r32341  
    471471  NewTask[0].Nfailure = 0;
    472472  NewTask[0].Ntimeout = 0;
     473  NewTask[0].Nskipexec = 0;
    473474
    474475  /* jobs timing statistics */
  • branches/eam_branches/ipp-20110710/Ohana/src/opihi/pantasks/ipptool2book.c

    r18080 r32341  
    6969    gprint (GP_ERR, "USAGE: ipptool2book (queue) (book) [-uniq] [-key key[:key..]]\n");
    7070    FREEKEYS;
    71     return (FALSE);
     71    return (TRUE);
    7272  }
    7373
     
    7676    gprint (GP_ERR, "queue %s not found\n", argv[1]);
    7777    FREEKEYS;
    78     return (FALSE);
     78    return (TRUE);
    7979  }
    8080   
     
    108108    free (line);
    109109    FREEKEYS;
    110     return FALSE;
     110    return (TRUE);
    111111  }
    112112  free (line);
     
    120120        gprint (GP_ERR, "ERROR: unterminated metadata\n");
    121121        FREEKEYS;
    122         return (FALSE);
     122        return (TRUE);
    123123      }
    124124      FREEKEYS;
     
    145145        free (bookName);
    146146        FREEKEYS;
    147         return (FALSE);
     147        return (TRUE);
    148148      }
    149149      free (tmpword);
     
    155155        free (bookName);
    156156        FREEKEYS;
    157         return FALSE;
     157        return TRUE;
    158158      }
    159159      onPage = TRUE;
     
    179179            gprint (GP_ERR, "ERROR: missing key %s for ID\n", keys[i]);
    180180            FREEKEYS;
    181             return (FALSE);
     181            return (TRUE);
    182182          }
    183183          if (i > 0) strcat (pagename, ":");
     
    221221      free (bookName);
    222222      FREEKEYS;
    223       return (FALSE);
     223      return (TRUE);
    224224    }
    225225    BookSetWord (page, tmpword, tmpvalue);
     
    229229  }   
    230230  FREEKEYS;
    231   return (FALSE);
     231  return (TRUE);
    232232}
    233233
  • branches/eam_branches/ipp-20110710/Ohana/src/tools/src/roc.c

    r30607 r32341  
    44# include <regex.h>
    55
    6 # define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); abort(); } }
     6# define myAssert(LOGIC,...) { if (!(LOGIC)) { fprintf (stderr, __VA_ARGS__); exit(4); } }
    77
    88# define ROC_HEADER_SIZE  0x1000
     
    198198
    199199  target = fopen(targetName, "r");
    200   myAssert (target, "failed to open output");
     200  myAssert (target, "failed to open rocfile");
    201201 
    202202  ALLOCATE (line, char, 1024);
     
    368368  for (i = 0; i < Ninput; i++) {
    369369    input[i] = fopen(inputName[i], "r");
    370     myAssert (input[i], "failed to open file %s in %s\n",inputName[i],targetName);
     370    myAssert (input[i], "failed to open input: %d data file: %s in %s\n",i,inputName[i],targetName);
    371371  }
    372372
     
    381381      Nread = MIN (ROC_BLOCKSIZE, sizes[i] - bytes_read[i]);
    382382      Nbytes = fread (inputData[i], 1, Nread, input[i]);
    383       myAssert (Nbytes == Nread, "failed to read data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);
     383      myAssert (Nbytes == Nread, "failed to read input: %d data file: %s read: %d expect: %d prev_read: %d block: %d in %s\n",i,inputName[i],Nbytes,Nread,(int) bytes_read[i],n,targetName);
    384384      if (Nread < ROC_BLOCKSIZE) {
    385385        // if we have reached the end of the file, fill in the rest with NULLs
     
    442442  fprintf (stderr, "USAGE: roc [mode]\n");
    443443  fprintf (stderr, " -create (target) (input) (input) (input) ... [options]\n");
    444   fprintf (stderr, " -repair (target) (file #) (output\n");
     444  fprintf (stderr, " -repair (target) (file #) (output)\n");
    445445  fprintf (stderr, " -validate (target)\n");
    446446  fprintf (stderr, " -insert (target) (input)\n");
Note: See TracChangeset for help on using the changeset viewer.