IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2007, 11:36:09 AM (20 years ago)
Author:
jhoblitt
Message:

use 'bool' instead of psBool where-ever possible

Location:
trunk/psLib/src/mathtypes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r10999 r11668  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.121 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-01-09 22:38:53 $
     11 *  @version $Revision: 1.122 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2007-02-06 21:36:09 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    780780    ps##TYPE V10 = 0; \
    781781    ps##TYPE V11 = 0; \
    782     psBool valid00 = false; \
    783     psBool valid01 = false; \
    784     psBool valid10 = false; \
    785     psBool valid11 = false; \
     782    bool valid00 = false; \
     783    bool valid01 = false; \
     784    bool valid10 = false; \
     785    bool valid11 = false; \
    786786    \
    787787    if (floorY >= 0 && floorY <= lastY) { \
     
    821821    \
    822822    RETURNTYPE V0 = 0.0; \
    823     psBool valid0 = true; \
     823    bool valid0 = true; \
    824824    if (valid00 && valid10) { \
    825825        V0 = V00*FRACFUNC(1-fracX)+V10*FRACFUNC(fracX); \
     
    833833    \
    834834    RETURNTYPE V1 = 0.0; \
    835     psBool valid1 = true; \
     835    bool valid1 = true; \
    836836    if (valid01 && valid11) { \
    837837        V1 = V01*FRACFUNC(1-fracX)+V11*FRACFUNC(fracX); \
  • trunk/psLib/src/mathtypes/psVector.c

    r10999 r11668  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2007-01-09 22:38:53 $
     11*  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2007-02-06 21:36:09 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    693693            // This is a little ugly, because psVector doesn't have a boolean type yet.
    694694            int temp = va_arg(argp, int);
    695             psBool value = temp;
     695            bool value = temp;
    696696            if (!value) {
    697                 memset(vector->data.U8, 0, vector->n * sizeof(psBool));
     697                memset(vector->data.U8, 0, vector->n * sizeof(bool));
    698698            } else {
    699699                for (long i = 0; i < vector->n; i++) {
  • trunk/psLib/src/mathtypes/psVector.h

    r11248 r11668  
    99 * @author Ross Harman, MHPCC
    1010 *
    11  * @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
    12  * @date $Date: 2007-01-23 22:47:23 $
     11 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $
     12 * @date $Date: 2007-02-06 21:36:09 $
    1313 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1414 */
     
    199199/** Print a vector to a stream
    200200 *
    201  *  @return psBool          TRUE is successful, otherwise FALSE.
     201 *  @return bool          TRUE is successful, otherwise FALSE.
    202202 */
    203203bool p_psVectorPrint (
Note: See TracChangeset for help on using the changeset viewer.