Changeset 7657 for trunk/ippTools/src/dettoolConfig.c
- Timestamp:
- Jun 23, 2006, 11:58:12 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettoolConfig.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettoolConfig.c
r7615 r7657 18 18 if (!config->modules) { 19 19 psError(PS_ERR_UNKNOWN, false, "Can't find site configuration"); 20 exit(EXIT_FAILURE);20 goto FAIL; 21 21 } 22 22 … … 394 394 psFree(rerunArgs); 395 395 396 exit(EXIT_FAILURE);396 goto FAIL; 397 397 } 398 398 … … 423 423 if (!psMetadataAddStr(config->where, PS_LIST_TAIL, #name, 0, "==", str)) {\ 424 424 psError(PS_ERR_UNKNOWN, false, "failed to add item " #name); \ 425 exit(EXIT_FAILURE); \425 goto FAIL; \ 426 426 } \ 427 427 } … … 440 440 if (!psMetadataAddS32(config->where, PS_LIST_TAIL, "iteration", 0, "==", n)) { 441 441 psError(PS_ERR_UNKNOWN, false, "failed to add item iteration"); 442 exit(EXIT_FAILURE);442 goto FAIL; 443 443 } 444 444 } … … 450 450 if (!psMetadataAddStr(config->where, PS_LIST_TAIL, "camera", 0, "==", str)) { 451 451 psError(PS_ERR_UNKNOWN, false, "failed to add item camera"); 452 exit(EXIT_FAILURE);452 goto FAIL; 453 453 } 454 454 } … … 458 458 if (!psMetadataAddS32(config->where, PS_LIST_TAIL, "imfiles", 0, "==", n)) { 459 459 psError(PS_ERR_UNKNOWN, false, "failed to add item imfiles"); 460 exit(EXIT_FAILURE);460 goto FAIL; 461 461 } 462 462 } … … 467 467 if (!psMetadataAddS32(config->where, PS_LIST_TAIL, "p1_version", 0, "==", n)) { 468 468 psError(PS_ERR_UNKNOWN, false, "failed to add item p1_version"); 469 exit(EXIT_FAILURE);469 goto FAIL; 470 470 } 471 471 } … … 473 473 if (!psMetadataAddBool(config->where, PS_LIST_TAIL, "accept", 0, "==", boolean)) { 474 474 psError(PS_ERR_UNKNOWN, false, "failed to add item accept"); 475 exit(EXIT_FAILURE);475 goto FAIL; 476 476 } 477 477 } … … 489 489 if (!config->dbh) { 490 490 psError(PS_ERR_UNKNOWN, false, "Can't configure database"); 491 exit(EXIT_FAILURE);491 goto FAIL; 492 492 } 493 493 … … 497 497 498 498 return config; 499 500 FAIL: 501 psLibFinalize(); 502 exit(EXIT_FAILURE); 499 503 }
Note:
See TracChangeset
for help on using the changeset viewer.
