Changeset 11668 for trunk/psLib/src/sys
- Timestamp:
- Feb 6, 2007, 11:36:09 AM (20 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 6 edited
-
psError.h (modified) (2 diffs)
-
psErrorCodes.c.in (modified) (2 diffs)
-
psErrorCodes.h.in (modified) (2 diffs)
-
psLogMsg.c (modified) (3 diffs)
-
psTrace.c (modified) (3 diffs)
-
psType.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.h
r11248 r11668 11 11 * @author Eric Van Alst, MHPCC 12 12 * 13 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-0 1-23 22:47:23$13 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-02-06 21:36:09 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 134 134 psErrorCode psError( 135 135 psErrorCode code, ///< Error class code 136 psBool new, ///< true if error originates at this location136 bool new, ///< true if error originates at this location 137 137 const char* format, ///< printf-style format of header line 138 138 ... ///< any parameters required in format -
trunk/psLib/src/sys/psErrorCodes.c.in
r11265 r11668 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 1-24 22:14:48$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-02-06 21:36:09 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 145 145 } 146 146 147 psBool p_psErrorUnregister(psErrorCode code)147 bool p_psErrorUnregister(psErrorCode code) 148 148 { 149 149 // Check input argument is non-negative -
trunk/psLib/src/sys/psErrorCodes.h.in
r11248 r11668 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-0 1-23 22:47:23$8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-02-06 21:36:09 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 75 75 /** Clears error codes registered via psErrorRegister. 76 76 * 77 * @return psBool TRUE if given errorcode was removed, otherwise FALSE.77 * @return bool TRUE if given errorcode was removed, otherwise FALSE. 78 78 */ 79 psBool p_psErrorUnregister(79 bool p_psErrorUnregister( 80 80 psErrorCode code ///< the error code to find and remove 81 81 ); -
trunk/psLib/src/sys/psLogMsg.c
r11617 r11668 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.6 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-02-0 3 05:54:08$13 * @version $Revision: 1.66 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-02-06 21:36:09 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 47 47 static int logFD = STDERR_FILENO; // Log file descriptor 48 48 static psS32 globalLogLevel = PS_LOG_INFO; // log all messages at this or above 49 static psBool logTime = true; // Flag to include time info50 static psBool logHost = true; // Flag to include host info51 static psBool logLevel = true; // Flag to include level info52 static psBool logName = true; // Flag to include name info53 static psBool logMsg = true; // Flag to include message info49 static bool logTime = true; // Flag to include time info 50 static bool logHost = true; // Flag to include host info 51 static bool logLevel = true; // Flag to include level info 52 static bool logName = true; // Flag to include name info 53 static bool logMsg = true; // Flag to include message info 54 54 55 55 /***************************************************************************** … … 86 86 dest (psS32): the new log destination 87 87 Return: 88 An psBool: TRUE if successful.88 An bool: TRUE if successful. 89 89 *****************************************************************************/ 90 90 bool psLogSetDestination(int fd) -
trunk/psLib/src/sys/psTrace.c
r11617 r11668 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-02-0 3 05:54:08$11 * @version $Revision: 1.84 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-02-06 21:36:09 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 68 68 static p_psComponent* cRoot = NULL; // The root of the trace component 69 static psBool traceTime = false; // Flag to include time info70 static psBool traceHost = false; // Flag to include host info71 static psBool traceLevel = false; // Flag to include level info72 static psBool traceName = false; // Flag to include name info73 static psBool traceMsg = true; // Flag to include message info69 static bool traceTime = false; // Flag to include time info 70 static bool traceHost = false; // Flag to include host info 71 static bool traceLevel = false; // Flag to include level info 72 static bool traceName = false; // Flag to include name info 73 static bool traceMsg = true; // Flag to include message info 74 74 static int traceFD = STDOUT_FILENO; // default value 75 75 … … 182 182 componentAdd(): Adds the component named "addNodeName" to the root tree. 183 183 *****************************************************************************/ 184 static psBool componentAdd(const char *addNodeName, psS32 level)184 static bool componentAdd(const char *addNodeName, psS32 level) 185 185 { 186 186 assert(addNodeName); -
trunk/psLib/src/sys/psType.h
r11265 r11668 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.5 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-0 1-24 22:14:48$12 * @version $Revision: 1.55 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-02-06 21:36:09 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 73 73 typedef char* psString; ///< string value 74 74 typedef 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__ 75 80 typedef bool psBool; ///< boolean value 81 // #endif // fdef __GNUC__ 82 typedef bool psBOOL; ///< allow psBOOL to be used instead of psBool (for macros) 76 83 77 84 /** Enumeration of data types for function elements. … … 150 157 151 158 typedef psU8 psMaskType; ///< the C datatype for a mask image 152 typedef psBool psBOOL; ///< allow psBOOL to be used instead of psBool (for macros)153 159 154 160 #define PS_MIN_S8 INT8_MIN /**< minimum valid psS8 value */
Note:
See TracChangeset
for help on using the changeset viewer.
