Changeset 13580 for trunk/ippTools/src/chiptool.c
- Timestamp:
- May 31, 2007, 4:40:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/chiptool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r12237 r13580 24 24 #include <stdio.h> 25 25 #include <string.h> 26 #include <stdint.h> 26 27 #include <stdlib.h> 28 #include <math.h> 27 29 28 30 #include "pxtools.h" … … 599 601 600 602 bool status = false; 601 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");603 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 602 604 if (!status) { 603 605 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); 606 return false; 607 } 608 if (code == INT16_MAX) { 609 psError(PS_ERR_UNKNOWN, true, "-code is required"); 604 610 return false; 605 611 } … … 831 837 return false; 832 838 } 833 if (!uri) {834 psError(PS_ERR_UNKNOWN, true, "-uri is required");835 return false;836 }837 839 838 840 psF64 bg = psMetadataLookupF64(&status, config->args, "-bg"); … … 862 864 863 865 // default values 864 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");866 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 865 867 if (!status) { 866 868 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code");
Note:
See TracChangeset
for help on using the changeset viewer.
