Changeset 9672 for trunk/psLib/src/types
- Timestamp:
- Oct 19, 2006, 4:36:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psLookupTable.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psLookupTable.c
r9538 r9672 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-10- 13 21:13:48$9 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-10-20 02:36:51 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 156 156 if(*end != '\0' && !isspace(*end)) { 157 157 *status = PS_PARSE_ERROR_VALUE; 158 } else if(inString==end) { 159 *status = PS_PARSE_ERROR_VALUE; 160 } 161 158 } 159 /* else if(inString==end) { 160 *status = PS_PARSE_ERROR_VALUE; 161 } 162 */ 162 163 return value; 163 164 } … … 173 174 if(*end != '\0' && !isspace(*end)) { 174 175 *status = PS_PARSE_ERROR_VALUE; 175 } else if(inString==end) { 176 *status = PS_PARSE_ERROR_VALUE; 177 } 178 176 } 177 /* else if(inString==end) { 178 *status = PS_PARSE_ERROR_VALUE; 179 } 180 */ 179 181 return value; 180 182 } … … 190 192 if(*end != '\0' && !isspace(*end)) { 191 193 *status = PS_PARSE_ERROR_VALUE; 192 } else if(inString==end) { 193 *status = PS_PARSE_ERROR_VALUE; 194 } 195 194 } 195 /* else if(inString==end) { 196 *status = PS_PARSE_ERROR_VALUE; 197 } 198 */ 196 199 return value; 197 200 } … … 207 210 if(*end != '\0' && !isspace(*end)) { 208 211 *status = PS_PARSE_ERROR_VALUE; 209 } else if(inString==end) { 210 *status = PS_PARSE_ERROR_VALUE; 211 } 212 212 } 213 /* else if(inString==end) { 214 *status = PS_PARSE_ERROR_VALUE; 215 } 216 */ 213 217 return value; 214 218 } … … 224 228 225 229 226 if(vec == NULL) {227 *status = 1;228 return;229 }230 230 /* if(vec == NULL) { 231 *status = 1; 232 return; 233 } 234 */ 231 235 type = vec->type.type; 232 236 … … 242 246 break; 243 247 case PS_TYPE_F64: 248 default: 244 249 vec->data.F64[index] = parseF64(strValue, status); 245 250 break; 246 default:247 *status = PS_PARSE_ERROR_TYPE;251 // default: 252 // *status = PS_PARSE_ERROR_TYPE; 248 253 } 249 254
Note:
See TracChangeset
for help on using the changeset viewer.
