IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2006, 2:43:55 PM (20 years ago)
Author:
magnier
Message:

unfolded return arguments to make pmConceptsReadCell more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r7278 r7310  
    279279    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    280280    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    281     return conceptsRead(&conceptsCell, fpa, chip, cell, &cell->conceptsRead, source, db, cell->concepts) &&
    282            ((propagate && conceptsRead(&conceptsChip, fpa, chip, cell, &chip->conceptsRead, source, db,
    283                                        chip->concepts) &&
    284              conceptsRead(&conceptsFPA, fpa, chip, cell, &fpa->conceptsRead, source, db, fpa->concepts)) ||
    285             !propagate);
     281
     282    bool cellSuccess = conceptsRead(&conceptsCell, fpa, chip, cell, &cell->conceptsRead, source, db, cell->concepts);
     283
     284    bool chipSuccess = true;
     285    if (propagate) {
     286        chipSuccess = conceptsRead(&conceptsChip, fpa, chip, cell, &chip->conceptsRead, source, db, chip->concepts);
     287    }
     288
     289    bool fpaSuccess = true;
     290    if (propagate) {
     291        fpaSuccess = conceptsRead(&conceptsFPA, fpa, chip, cell, &fpa->conceptsRead, source, db, fpa->concepts);
     292    }
     293
     294    return (cellSuccess && chipSuccess && fpaSuccess);
    286295}
    287296
Note: See TracChangeset for help on using the changeset viewer.