Changeset 7300 for trunk/psLib/src/sys
- Timestamp:
- Jun 2, 2006, 11:33:34 AM (20 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 5 edited
-
psError.c (modified) (2 diffs)
-
psError.h (modified) (2 diffs)
-
psLogMsg.c (modified) (3 diffs)
-
psString.h (modified) (2 diffs)
-
psTrace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.c
r7250 r7300 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 5-31 19:53:36$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-02 21:33:34 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 167 167 { 168 168 return psErrorGet(0); 169 } 170 171 psErrorCode psErrorCodeLast(void) 172 { 173 const psErr *err = psErrorGet(0); 174 psErrorCode code = err->code; 175 psFree(err); 176 177 return code; 169 178 } 170 179 -
trunk/psLib/src/sys/psError.h
r4556 r7300 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $15 * @date $Date: 200 5-07-15 02:33:54 $14 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-06-02 21:33:34 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 63 63 psErr* psErrorLast(void); 64 64 65 /** Get errorCode of last error put on the error stack 66 * 67 * @return psErrorCode last error code, or PS_ERR_NONE 68 */ 69 psErrorCode psErrorCodeLast(void); 70 65 71 /** Clears the error stack. 66 72 * -
trunk/psLib/src/sys/psLogMsg.c
r5072 r7300 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.5 2$ $Name: not supported by cvs2svn $15 * @date $Date: 200 5-09-20 02:43:53$14 * @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-06-02 21:33:34 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 310 310 logDest = stderr; 311 311 } 312 // If it's an abort, we always want to see the message 313 if (logDest == NULL && level == PS_LOG_ABORT) { 314 logDest = stderr; 315 } 312 316 // If logging is off, or if the level is too high, return immediately. 313 317 if ((level > globalLogLevel) || (logDest == NULL)) { … … 405 409 } else { 406 410 fputc('\n', logDest); 411 } 412 413 if (level == PS_LOG_ABORT) { 414 fflush(logDest); 407 415 } 408 416 } -
trunk/psLib/src/sys/psString.h
r7015 r7300 14 14 * @author David Robbins, MHPCC 15 15 * 16 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $17 * @date $Date: 2006-0 5-01 00:57:07$16 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2006-06-02 21:33:34 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 /** This macro will convert the argument to a quoted string */ 30 30 #define PS_STRING(S) #S 31 32 /** This macro expands to "file:line" */ 33 #define PS_FILE_LINE __FILE__ ":" PS_STRING(__LINE__) 31 34 32 35 // Doxygen group tags -
trunk/psLib/src/sys/psTrace.c
r5118 r7300 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 1$ $Name: not supported by cvs2svn $12 * @date $Date: 200 5-09-24 01:33:12$11 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-06-02 21:33:34 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 598 598 vsprintf(line, format, ap); 599 599 write (traceFD, line, strlen(line)); 600 if (line[strlen(line) - 1] != '\n') { 601 write(traceFD, "\n", 1); 602 } 603 600 604 601 605 // vfprintf(traceFP, format, ap);
Note:
See TracChangeset
for help on using the changeset viewer.
