Changeset 23873 for trunk/ippTools/src/difftool.c
- Timestamp:
- Apr 15, 2009, 9:33:58 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r23740 r23873 1748 1748 PXOPT_LOOKUP_STR(outfile, config->args, "-outfile", true, false); 1749 1749 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1750 PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false); 1750 1751 1751 1752 FILE *f = fopen (outfile, "w"); … … 1793 1794 psArray *output = p_psDBFetchResult(config->dbh); 1794 1795 if (!output) { 1795 psError(PS_ERR_UNKNOWN, false, "database error");1796 1796 return false; 1797 1797 } 1798 1798 if (!psArrayLength(output)) { 1799 ps Trace("regtool", PS_LOG_INFO, "no rows found");1799 psError(PS_ERR_UNKNOWN, true, "no rows found"); 1800 1800 psFree(output); 1801 return true; 1801 return false; 1802 } 1803 1804 if (clean) { 1805 bool success = true; 1806 if (!strcmp(tables[i].tableName, "diffRun")) { 1807 success = pxSetStateCleaned("diffRun", "state", output); 1808 #ifdef notyet 1809 // diffSkyfile doesn't have dataState yet 1810 } else if (!strcmp(tables[i].tableName, "diffSkyfile")) { 1811 success = pxSetStateCleaned("diffSkyfile", "data_state", output); 1812 #endif 1813 } 1814 if (!success) { 1815 psFree(output); 1816 psError(PS_ERR_UNKNOWN, false, "pxSetStateClean failed for table %s", tables[i].tableName); 1817 return false; 1818 } 1802 1819 } 1803 1820
Note:
See TracChangeset
for help on using the changeset viewer.
