IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11668 for trunk/psLib/src/sys


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/sys
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.h

    r11248 r11668  
    1111 *  @author Eric Van Alst, MHPCC
    1212 *
    13  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2007-01-23 22:47:23 $
     13 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-02-06 21:36:09 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    134134psErrorCode psError(
    135135    psErrorCode code,                  ///< Error class code
    136     psBool new,                        ///< true if error originates at this location
     136    bool new,                        ///< true if error originates at this location
    137137    const char* format,                ///< printf-style format of header line
    138138    ...                                ///< any parameters required in format
  • trunk/psLib/src/sys/psErrorCodes.c.in

    r11265 r11668  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-01-24 22:14:48 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-02-06 21:36:09 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    145145}
    146146
    147 psBool p_psErrorUnregister(psErrorCode code)
     147bool p_psErrorUnregister(psErrorCode code)
    148148{
    149149    // Check input argument is non-negative
  • trunk/psLib/src/sys/psErrorCodes.h.in

    r11248 r11668  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-01-23 22:47:23 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-02-06 21:36:09 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    7575/** Clears error codes registered via psErrorRegister.
    7676 *
    77  *  @return psBool    TRUE if given errorcode was removed, otherwise FALSE.
     77 *  @return bool    TRUE if given errorcode was removed, otherwise FALSE.
    7878 */
    79 psBool p_psErrorUnregister(
     79bool p_psErrorUnregister(
    8080    psErrorCode code                   ///< the error code to find and remove
    8181);
  • trunk/psLib/src/sys/psLogMsg.c

    r11617 r11668  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2007-02-03 05:54:08 $
     13 *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-02-06 21:36:09 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    4747static int logFD = STDERR_FILENO;       // Log file descriptor
    4848static psS32 globalLogLevel = PS_LOG_INFO; // log all messages at this or above
    49 static psBool logTime = true;     // Flag to include time info
    50 static psBool logHost = true;     // Flag to include host info
    51 static psBool logLevel = true;    // Flag to include level info
    52 static psBool logName = true;     // Flag to include name info
    53 static psBool logMsg = true;      // Flag to include message info
     49static bool logTime = true;     // Flag to include time info
     50static bool logHost = true;     // Flag to include host info
     51static bool logLevel = true;    // Flag to include level info
     52static bool logName = true;     // Flag to include name info
     53static bool logMsg = true;      // Flag to include message info
    5454
    5555/*****************************************************************************
    … …  
    8686 dest (psS32): the new log destination
    8787Return:
    88  An psBool: TRUE if successful.
     88 An bool: TRUE if successful.
    8989 *****************************************************************************/
    9090bool psLogSetDestination(int fd)
  • trunk/psLib/src/sys/psTrace.c

    r11617 r11668  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-02-03 05:54:08 $
     11 *  @version $Revision: 1.84 $ $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
    … …  
    6767
    6868static p_psComponent* cRoot = NULL; // The root of the trace component
    69 static psBool traceTime = false;     // Flag to include time info
    70 static psBool traceHost = false;     // Flag to include host info
    71 static psBool traceLevel = false;    // Flag to include level info
    72 static psBool traceName = false;     // Flag to include name info
    73 static psBool traceMsg = true;      // Flag to include message info
     69static bool traceTime = false;     // Flag to include time info
     70static bool traceHost = false;     // Flag to include host info
     71static bool traceLevel = false;    // Flag to include level info
     72static bool traceName = false;     // Flag to include name info
     73static bool traceMsg = true;      // Flag to include message info
    7474static int traceFD = STDOUT_FILENO; // default value
    7575
    … …  
    182182componentAdd(): Adds the component named "addNodeName" to the root tree.
    183183 *****************************************************************************/
    184 static psBool componentAdd(const char *addNodeName, psS32 level)
     184static bool componentAdd(const char *addNodeName, psS32 level)
    185185{
    186186    assert(addNodeName);
  • trunk/psLib/src/sys/psType.h

    r11265 r11668  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-01-24 22:14:48 $
     12*  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-02-06 21:36:09 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    7373typedef char* psString;                ///< string value
    7474typedef void* psPtr;                   ///< void pointer
     75// XXX psBool can't be removed until all macros that 'generate' this type are
     76// fixed -JH
     77// #ifdef __GNUC__
     78// typedef bool psBool __attribute__ ((deprecated)); ///< boolean value
     79//#else // ifdef __GNUC__
    7580typedef bool psBool;                   ///< boolean value
     81// #endif // fdef __GNUC__
     82typedef bool psBOOL;                 ///< allow psBOOL to be used instead of psBool (for macros)
    7683
    7784/** Enumeration of data types for function elements.
    … …  
    150157
    151158typedef psU8 psMaskType;               ///< the C datatype for a mask image
    152 typedef psBool psBOOL;                 ///< allow psBOOL to be used instead of psBool (for macros)
    153159
    154160#define PS_MIN_S8        INT8_MIN      /**< minimum valid psS8 value */
Note: See TracChangeset for help on using the changeset viewer.