Changeset 4342 for trunk/psLib/src/sys
- Timestamp:
- Jun 21, 2005, 4:05:41 PM (21 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r4315 r4342 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 18 02:30:50$12 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-22 02:05:41 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 } 68 68 69 psErrorCode p_psError(const char* file ,70 int lineno,69 psErrorCode p_psError(const char* filename, 70 unsigned int lineno, 71 71 const char* func, 72 72 psErrorCode code, 73 psBool new,74 const char* f mt,73 bool new, 74 const char* format, 75 75 ...) 76 76 { … … 79 79 char msgName[1024]; 80 80 81 snprintf(msgName,1024,"%s (%s:%d)",func,file ,lineno);81 snprintf(msgName,1024,"%s (%s:%d)",func,filename,lineno); 82 82 83 83 va_list argPtr; // variable list arguement pointer … … 88 88 89 89 // Get the variable list parameters to pass to logging function 90 va_start(argPtr, f mt);91 92 vsnprintf(errMsg,2048,f mt,argPtr);90 va_start(argPtr, format); 91 92 vsnprintf(errMsg,2048,format,argPtr); 93 93 err = psErrAlloc(msgName,code,errMsg); 94 94 pushErrorStack(err); -
trunk/psLib/src/sys/psError.h
r4315 r4342 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:50$14 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-22 02:05:41 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 148 148 */ 149 149 psErrorCode p_psError( 150 const char* file ,///< file name151 int lineno,///< line number in file150 const char* filename, ///< file name 151 unsigned int lineno, ///< line number in file 152 152 const char* func, ///< function name 153 153 psErrorCode code, ///< Error class code 154 psBool new,///< true if error originates at this location155 const char* f mt,///< printf-style format of header line154 bool new, ///< true if error originates at this location 155 const char* format, ///< printf-style format of header line 156 156 ... ///< any parameters required in fmt 157 157 ); -
trunk/psLib/src/sys/psType.h
r4293 r4342 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 17 00:11:08$12 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-22 02:05:41 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 71 71 #endif // !SWIG 72 72 73 typedef char* psString; ///< string value 73 74 typedef void* psPtr; ///< void pointer 74 75 typedef bool psBool; ///< boolean value
Note:
See TracChangeset
for help on using the changeset viewer.
