IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7904


Ignore:
Timestamp:
Jul 14, 2006, 8:27:51 AM (20 years ago)
Author:
rhl
Message:

replace set of ifs by if else (easier on gdb)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r7728 r7904  
    7171        if (!strcasecmp (type, "SX"))     {
    7272            file->type = PM_FPA_FILE_SX;
    73         }
    74         if (!strcasecmp (type, "OBJ"))     {
     73        } else if (!strcasecmp (type, "OBJ"))     {
    7574            file->type = PM_FPA_FILE_OBJ;
    76         }
    77         if (!strcasecmp (type, "CMP"))     {
     75        } else if (!strcasecmp (type, "CMP"))     {
    7876            file->type = PM_FPA_FILE_CMP;
    79         }
    80         if (!strcasecmp (type, "CMF"))     {
     77        } else if (!strcasecmp (type, "CMF"))     {
    8178            file->type = PM_FPA_FILE_CMF;
    82         }
    83         if (!strcasecmp (type, "RAW"))     {
     79        } else if (!strcasecmp (type, "RAW"))     {
    8480            file->type = PM_FPA_FILE_RAW;
    85         }
    86         if (!strcasecmp (type, "IMAGE"))     {
     81        } else if (!strcasecmp (type, "IMAGE"))     {
    8782            file->type = PM_FPA_FILE_IMAGE;
    88         }
    89         if (!strcasecmp (type, "PSF"))     {
     83        } else if (!strcasecmp (type, "PSF"))     {
    9084            file->type = PM_FPA_FILE_PSF;
    91         }
    92         if (!strcasecmp (type, "JPEG"))     {
     85        } else if (!strcasecmp (type, "JPEG"))     {
    9386            file->type = PM_FPA_FILE_JPEG;
    9487        }
Note: See TracChangeset for help on using the changeset viewer.