Changeset 41681 for trunk/ippTools/src
- Timestamp:
- Jul 2, 2021, 8:35:25 AM (5 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
difftool.c (modified) (4 diffs)
-
difftoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r41549 r41681 2414 2414 2415 2415 PXOPT_LOOKUP_BOOL(bothways, config->args, "-bothways", false); 2416 PXOPT_LOOKUP_BOOL(relaxedFilters, config->args, "-relaxed-filters", false); 2416 2417 2417 2418 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 2452 2453 } 2453 2454 2455 // restrict input and templated to the same filter unless not restricted 2456 psString filtQuery0 = NULL; 2457 psString filtQuery1 = NULL; 2458 if (! relaxedFilters) { 2459 psStringAppend(&filtQuery0, "AND stackRun.filter = template.filter"); 2460 psStringAppend(&filtQuery1, "AND stackRun.filter = template.filter"); 2461 } 2462 2454 2463 // find the distinct set of data_groups and filters 2455 2464 psString query = pxDataGet("difftool_definestackstack_part0.sql"); … … 2468 2477 psStringSubstitute(&query, stack2Query, "@STACK2_QUERY@"); 2469 2478 psStringSubstitute(&query, diffQuery0, "@DIFF0_QUERY@"); 2479 psStringSubstitute(&query, filtQuery0, "@FILT0_QUERY@"); 2470 2480 2471 2481 if (!p_psDBRunQuery(config->dbh, query)) { … … 2546 2556 psStringSubstitute(&query, stack2Query, "@STACK2_QUERY@"); 2547 2557 psStringSubstitute(&query, diffQuery1, "@DIFF1_QUERY@"); 2558 psStringSubstitute(&query, filtQuery1, "@FILT1_QUERY@"); 2548 2559 2549 2560 psTrace("difftool", 1, "%s", query); -
trunk/ippTools/src/difftoolConfig.c
r41654 r41681 372 372 psMetadataAddStr(definestackstackArgs, PS_LIST_TAIL, "-tess_id", 0, "search by tess ID", NULL); 373 373 psMetadataAddBool(definestackstackArgs, PS_LIST_TAIL, "-bothways", 0, "do the subtraction both ways?", false); 374 psMetadataAddBool(definestackstackArgs, PS_LIST_TAIL, "-relaxed-filters", 0, "allow mismatched filters between input and template?", false); 374 375 psMetadataAddStr(definestackstackArgs, PS_LIST_TAIL, "-filter", 0, "search by filter", NULL); 375 376 psMetadataAddStr(definestackstackArgs, PS_LIST_TAIL, "-input_label", 0, "search by stack label for input", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
