Changeset 2004
- Timestamp:
- Oct 7, 2004, 9:31:59 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 7 edited
-
astronomy/psMetadata.c (modified) (2 diffs)
-
astronomy/psMetadataIO.c (modified) (5 diffs)
-
collections/psMetadata.c (modified) (2 diffs)
-
collections/psMetadataIO.c (modified) (5 diffs)
-
types/psMetadata.c (modified) (2 diffs)
-
types/psMetadataConfig.c (modified) (5 diffs)
-
xml/psXML.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psMetadata.c
r1989 r2004 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-0 6 23:27:27$14 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-07 19:31:41 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 159 159 break; 160 160 case PS_META_S32: 161 metadataItem->data.S32 = va_arg(argPtr, psS32);161 metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64); 162 162 break; 163 163 case PS_META_F32: -
trunk/psLib/src/astronomy/psMetadataIO.c
r1995 r2004 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-07 02:16:36$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 19:31:59 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 462 462 int lineCount = 0; 463 463 int failedLines = 0; 464 psF64 temp Value= 0.0;464 psF64 tempDbl = 0.0; 465 465 psMetadataItem *metadataItem = NULL; 466 466 psVector *tempVec = NULL; … … 508 508 } else if(repeatedChars(linePtr, '*') > 1) { 509 509 failedLines++; 510 psError(__func__, "More than one @charecter not allowed. Line %d: %s", lineCount, line);510 psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line); 511 511 continue; 512 512 } else if(repeatedChars(linePtr, '~') > 0) { … … 515 515 continue; 516 516 } 517 518 517 519 518 // Get metadata item name … … 616 615 case PS_META_F32: 617 616 case PS_META_F64: 618 temp Value= parseValue(strValue, &status);617 tempDbl = parseValue(strValue, &status); 619 618 if(!status) { 620 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, temp Value);619 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl); 621 620 } else { 622 621 status = 0; -
trunk/psLib/src/collections/psMetadata.c
r1989 r2004 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-0 6 23:27:27$14 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-07 19:31:41 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 159 159 break; 160 160 case PS_META_S32: 161 metadataItem->data.S32 = va_arg(argPtr, psS32);161 metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64); 162 162 break; 163 163 case PS_META_F32: -
trunk/psLib/src/collections/psMetadataIO.c
r1995 r2004 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-07 02:16:36$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 19:31:59 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 462 462 int lineCount = 0; 463 463 int failedLines = 0; 464 psF64 temp Value= 0.0;464 psF64 tempDbl = 0.0; 465 465 psMetadataItem *metadataItem = NULL; 466 466 psVector *tempVec = NULL; … … 508 508 } else if(repeatedChars(linePtr, '*') > 1) { 509 509 failedLines++; 510 psError(__func__, "More than one @charecter not allowed. Line %d: %s", lineCount, line);510 psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line); 511 511 continue; 512 512 } else if(repeatedChars(linePtr, '~') > 0) { … … 515 515 continue; 516 516 } 517 518 517 519 518 // Get metadata item name … … 616 615 case PS_META_F32: 617 616 case PS_META_F64: 618 temp Value= parseValue(strValue, &status);617 tempDbl = parseValue(strValue, &status); 619 618 if(!status) { 620 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, temp Value);619 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl); 621 620 } else { 622 621 status = 0; -
trunk/psLib/src/types/psMetadata.c
r1989 r2004 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-10-0 6 23:27:27$14 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-10-07 19:31:41 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 159 159 break; 160 160 case PS_META_S32: 161 metadataItem->data.S32 = va_arg(argPtr, psS32);161 metadataItem->data.S32 = (psS32)va_arg(argPtr, psF64); 162 162 break; 163 163 case PS_META_F32: -
trunk/psLib/src/types/psMetadataConfig.c
r1995 r2004 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-07 02:16:36$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 19:31:59 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 462 462 int lineCount = 0; 463 463 int failedLines = 0; 464 psF64 temp Value= 0.0;464 psF64 tempDbl = 0.0; 465 465 psMetadataItem *metadataItem = NULL; 466 466 psVector *tempVec = NULL; … … 508 508 } else if(repeatedChars(linePtr, '*') > 1) { 509 509 failedLines++; 510 psError(__func__, "More than one @charecter not allowed. Line %d: %s", lineCount, line);510 psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line); 511 511 continue; 512 512 } else if(repeatedChars(linePtr, '~') > 0) { … … 515 515 continue; 516 516 } 517 518 517 519 518 // Get metadata item name … … 616 615 case PS_META_F32: 617 616 case PS_META_F64: 618 temp Value= parseValue(strValue, &status);617 tempDbl = parseValue(strValue, &status); 619 618 if(!status) { 620 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, temp Value);619 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl); 621 620 } else { 622 621 status = 0; -
trunk/psLib/src/xml/psXML.c
r1995 r2004 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-07 02:16:36$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 19:31:59 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 462 462 int lineCount = 0; 463 463 int failedLines = 0; 464 psF64 temp Value= 0.0;464 psF64 tempDbl = 0.0; 465 465 psMetadataItem *metadataItem = NULL; 466 466 psVector *tempVec = NULL; … … 508 508 } else if(repeatedChars(linePtr, '*') > 1) { 509 509 failedLines++; 510 psError(__func__, "More than one @charecter not allowed. Line %d: %s", lineCount, line);510 psError(__func__, "More than one * charecter not allowed. Line %d: %s", lineCount, line); 511 511 continue; 512 512 } else if(repeatedChars(linePtr, '~') > 0) { … … 515 515 continue; 516 516 } 517 518 517 519 518 // Get metadata item name … … 616 615 case PS_META_F32: 617 616 case PS_META_F64: 618 temp Value= parseValue(strValue, &status);617 tempDbl = parseValue(strValue, &status); 619 618 if(!status) { 620 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, temp Value);619 psMetadataAdd(*md, PS_LIST_TAIL, strName, mdType, strComment, tempDbl); 621 620 } else { 622 621 status = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
