Changeset 12024 for trunk/ippTools/src/guidetool.c
- Timestamp:
- Feb 23, 2007, 3:41:56 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/guidetool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/guidetool.c
r11997 r12024 29 29 static bool pendingMode(pxConfig *config); 30 30 static bool defineMode(pxConfig *config); 31 static p1PendingExpRow *rawScienceTop1PendingExp(pxConfig *config, rawScienceExpRow *exp);31 static guidePendingExpRow *rawScienceToguidePendingExp(pxConfig *config, rawScienceExpRow *exp); 32 32 33 33 int main(int argc, char **argv) … … 61 61 PS_ASSERT_PTR_NON_NULL(config, false); 62 62 63 // return all p1PendingExp rows unless there CLI search options64 psArray * p1PendingExp = p1PendingExpSelectRowObjects(63 // return all guidePendingExp rows unless there CLI search options 64 psArray *guidePendingExp = guidePendingExpSelectRowObjects( 65 65 config->dbh, 66 66 config->where ? config->where : NULL, 67 67 0 68 68 ); 69 if (! p1PendingExp) {70 psError(PS_ERR_UNKNOWN, false, "no p1PendingExp found");69 if (!guidePendingExp) { 70 psError(PS_ERR_UNKNOWN, false, "no guidePendingExp found"); 71 71 return false; 72 72 } … … 74 74 psMetadata *output = psMetadataAlloc(); 75 75 76 for (long i = 0; i < psArrayLength( p1PendingExp); i++) {77 psMetadata *md = p1PendingExpMetadataFromObject(p1PendingExp->data[i]);78 psMetadataAddMetadata(output, PS_LIST_TAIL, " p1PendingExp",76 for (long i = 0; i < psArrayLength(guidePendingExp); i++) { 77 psMetadata *md = guidePendingExpMetadataFromObject(guidePendingExp->data[i]); 78 psMetadataAddMetadata(output, PS_LIST_TAIL, "guidePendingExp", 79 79 PS_META_DUPLICATE_OK, NULL, md); 80 80 psFree(md); … … 106 106 } 107 107 108 // insert the rawScienceExps into p1PendingExp108 // insert the rawScienceExps into guidePendingExp 109 109 // XXX for the being we're going to skip checking for duplicate entries 110 110 // XXX this will have to implimented unless duplicate key insertion 111 111 // XXX support is implimented in psDB 112 112 for (long i = 0; i < psArrayLength(rawScienceExps); i++) { 113 p1PendingExpRow * new = rawScienceTop1PendingExp(113 guidePendingExpRow * new = rawScienceToguidePendingExp( 114 114 config, rawScienceExps->data[i]); 115 if (! p1PendingExpInsertObject(config->dbh, new)) {115 if (!guidePendingExpInsertObject(config->dbh, new)) { 116 116 psError(PS_ERR_UNKNOWN, false, "dbh access failed"); 117 117 return false; … … 123 123 } 124 124 125 static p1PendingExpRow *rawScienceTop1PendingExp(pxConfig *config, rawScienceExpRow *exp)125 static guidePendingExpRow *rawScienceToguidePendingExp(pxConfig *config, rawScienceExpRow *exp) 126 126 { 127 127 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 184 184 } 185 185 186 return p1PendingExpRowAlloc(186 return guidePendingExpRowAlloc( 187 187 exp->exp_tag, 188 188 exp->camera,
Note:
See TracChangeset
for help on using the changeset viewer.
