Changeset 12091 for trunk/ippTools/src
- Timestamp:
- Feb 27, 2007, 12:23:01 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxdata.c.template (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxdata.c.template
r12075 r12091 52 52 psString text = psSlurpFilename(filepath); 53 53 psFree(filepath); 54 if (!text) { 55 psError(PS_ERR_IO, false, "failed to slurp %s", filepath); 56 return NULL; 57 } 54 58 55 59 return text; … … 61 65 // see if we have a valid filename 62 66 if (test_f(filepath)) { 63 // if we do n't, then we're hosed64 ps Error(PS_ERR_IO, true, "can't find a file in search path(s) to match : %s", filename);67 // if we do, slurp the file 68 psString text = psSlurpFilename(filepath); 65 69 psFree(filepath); 70 if (!text) { 71 psError(PS_ERR_IO, false, "failed to slurp %s", filepath); 72 return NULL; 73 } 66 74 67 return NULL;75 return text; 68 76 } 69 77 70 // slurp the file 71 psString text = psSlurpFilename(filepath); 72 psFree(filepath); 73 if (!text) { 74 psError(PS_ERR_IO, false, "failed to slurp %s", filepath); 75 return NULL; 76 } 78 // couldn't find a matching filename 79 psError(PS_ERR_IO, true, "can't find a file in search path(s) to match : %s", filename); 77 80 78 return text;81 return NULL; 79 82 } 80 83
Note:
See TracChangeset
for help on using the changeset viewer.
