IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9672 for trunk/psLib/src/types


Ignore:
Timestamp:
Oct 19, 2006, 4:36:51 PM (20 years ago)
Author:
drobbin
Message:

Removed unreachable spots in psLookupTable. Added tests to tap_psLookupTable. Added input file for that test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psLookupTable.c

    r9538 r9672  
    77*  @author Ross Harman, MHPCC
    88*
    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 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    156156    if(*end != '\0' && !isspace(*end)) {
    157157        *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    */
    162163    return value;
    163164}
     
    173174    if(*end != '\0' && !isspace(*end)) {
    174175        *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    */
    179181    return value;
    180182}
     
    190192    if(*end != '\0' && !isspace(*end)) {
    191193        *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    */
    196199    return value;
    197200}
     
    207210    if(*end != '\0' && !isspace(*end)) {
    208211        *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    */
    213217    return value;
    214218}
     
    224228
    225229
    226     if(vec == NULL) {
    227         *status = 1;
    228         return;
    229     }
    230 
     230    /*    if(vec == NULL) {
     231            *status = 1;
     232            return;
     233        }
     234    */
    231235    type = vec->type.type;
    232236
     
    242246        break;
    243247    case PS_TYPE_F64:
     248    default:
    244249        vec->data.F64[index] = parseF64(strValue, status);
    245250        break;
    246     default:
    247         *status = PS_PARSE_ERROR_TYPE;
     251        //    default:
     252        //        *status = PS_PARSE_ERROR_TYPE;
    248253    }
    249254
Note: See TracChangeset for help on using the changeset viewer.