Changeset 25545
- Timestamp:
- Sep 24, 2009, 1:50:20 PM (17 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
magictool.c (modified) (1 diff)
-
magictoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magictool.c
r25512 r25545 1399 1399 psMetadata *where = psMetadataAlloc(); 1400 1400 1401 PXOPT_LOOKUP_S64(magic_id, config->args, "-magic_id", false, false); 1402 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", false, false); 1403 PXOPT_LOOKUP_STR(label, config->args, "-label", false, false); 1404 1405 if (!magic_id) { 1406 if (!exp_id && !label) { 1407 psError(PS_ERR_UNKNOWN, true, "either -magic_id or exp_id and label is required"); 1408 return false; 1409 } 1410 } 1411 1401 1412 // at least one of these required 1402 1413 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 1403 1414 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1415 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 1404 1416 1405 1417 if (!psListLength(where->list)) { -
trunk/ippTools/src/magictoolConfig.c
r24946 r25545 165 165 psMetadataAddS64(censorrunArgs, PS_LIST_TAIL, "-magic_id", 0, "define magictool ID", 0); 166 166 psMetadataAddS64(censorrunArgs, PS_LIST_TAIL, "-exp_id", 0, "define exposure ID", 0); 167 psMetadataAddStr(censorrunArgs, PS_LIST_TAIL, "-label", 0, "define label", NULL); 167 168 168 169 psFree(now);
Note:
See TracChangeset
for help on using the changeset viewer.
