Changeset 5462 for trunk/archive/scripts/src/phase2/pmFPAConceptsSet.c
- Timestamp:
- Nov 2, 2005, 3:30:32 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/pmFPAConceptsSet.c
r5371 r5462 68 68 } 69 69 return (item1->data.F64 == item2->data.F64) ? true : false; 70 case PS_ META_STR:71 if (item2->type != PS_ META_STR) {70 case PS_DATA_STRING: 71 if (item2->type != PS_DATA_STRING) { 72 72 return false; 73 73 } … … 112 112 // XXX: Need to expand range of types 113 113 switch (concept->type) { 114 case PS_ META_STR:114 case PS_DATA_STRING: 115 115 headerItem = psMetadataItemAllocStr(keyword, concept->comment, concept->data.V); 116 116 break; 117 case PS_ META_S32:117 case PS_DATA_S32: 118 118 headerItem = psMetadataItemAllocS32(keyword, concept->comment, concept->data.S32); 119 119 break; 120 case PS_ META_F32:120 case PS_DATA_F32: 121 121 headerItem = psMetadataItemAllocF32(keyword, concept->comment, concept->data.F32); 122 122 break; 123 case PS_ META_F64:123 case PS_DATA_F64: 124 124 headerItem = psMetadataItemAllocF64(keyword, concept->comment, concept->data.F64); 125 125 break; … … 183 183 psMetadataItem *defItem = psMetadataLookup(defaults, concept->name); 184 184 if (defItem) { 185 if (defItem->type == PS_ META_META) {185 if (defItem->type == PS_DATA_METADATA) { 186 186 // A dependent default 187 187 psTrace(__func__, 7, "Evaluating dependent default....\n"); … … 205 205 return false; 206 206 } 207 if (depItem->type != PS_ META_STR) {207 if (depItem->type != PS_DATA_STRING) { 208 208 psError(PS_ERR_IO, true, "Value of %s is not of type string, as required for dependency" 209 209 " --- ignored.\n", dependsOn); … … 555 555 if (! sourceItem) { 556 556 psError(PS_ERR_IO, false, "Couldn't find CELL.TRIMSEC.SOURCE.\n"); 557 } else if (sourceItem->type != PS_ META_STR) {557 } else if (sourceItem->type != PS_DATA_STRING) { 558 558 psError(PS_ERR_IO, true, "CELL.TRIMSEC.SOURCE is not of type STR (%x)\n", sourceItem->type); 559 559 } else { … … 596 596 if (! sourceItem) { 597 597 psError(PS_ERR_IO, false, "Couldn't find CELL.BIASSEC.SOURCE.\n"); 598 } else if (sourceItem->type != PS_ META_STR) {598 } else if (sourceItem->type != PS_DATA_STRING) { 599 599 psError(PS_ERR_IO, true, "CELL.BIASSEC.SOURCE is not of type STR (%x)\n", sourceItem->type); 600 600 } else { … … 668 668 psRegion *biassec = psListGetAndIncrement(biassecsIter); 669 669 psString biassecString = psRegionToString(*biassec); 670 psMetadataAdd(header, PS_LIST_TAIL, keyword, PS_ META_STR| PS_META_REPLACE,670 psMetadataAdd(header, PS_LIST_TAIL, keyword, PS_DATA_STRING | PS_META_REPLACE, 671 671 "Bias section", biassecString); 672 672 psFree(biassecString);
Note:
See TracChangeset
for help on using the changeset viewer.
