Changeset 1137
- Timestamp:
- Jun 29, 2004, 3:09:12 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 6 edited
-
Makefile.Globals (modified) (2 diffs)
-
sys/psTrace.c (modified) (3 diffs)
-
sys/psTrace.h (modified) (4 diffs)
-
sysUtils/psTrace.c (modified) (3 diffs)
-
sysUtils/psTrace.d (modified) (1 diff)
-
sysUtils/psTrace.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Makefile.Globals
r1041 r1137 5 5 ## Assumptions: Variable "prefix" already defined 6 6 ## 7 ## $Revision: 1.1 1$ $Name: not supported by cvs2svn $8 ## $Date: 2004-06- 15 02:45:42 $7 ## $Revision: 1.12 $ $Name: not supported by cvs2svn $ 8 ## $Date: 2004-06-30 01:09:12 $ 9 9 ## 10 10 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 44 44 CFLAGS := -O0 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -pipe 45 45 46 ifdef NO_TRACE 47 CFLAGS := $(CFLAGS) -DPS_NO_TRACE=1 48 endif 49 46 50 # Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries. 47 51 -
trunk/psLib/src/sys/psTrace.c
r1081 r1137 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 24 03:12:19$11 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-30 01:09:12 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 this purpose. 32 32 *****************************************************************************/ 33 34 #ifndef PS_NO_TRACE 35 33 36 #include <stdlib.h> 34 37 #include <stdio.h> … … 418 421 p_psTraceFP = fp; 419 422 } 423 424 #endif -
trunk/psLib/src/sys/psTrace.h
r1081 r1137 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 24 03:12:19$11 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-30 01:09:12 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 #if !defined(PS_TRACE_H) 17 17 #define PS_TRACE_H 1 18 18 19 #define UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 19 20 #define DEFAULT_TRACE_LEVEL 0 21 22 23 /** \addtogroup LogTrace 24 * \{ 25 */ 26 27 /** Functions **************************************************************/ 28 29 //#define PS_NO_TRACE 1 ///< to turn off all tracing 30 31 #if defined(PS_NO_TRACE) 32 #define psTrace(facil, level, ...) (void)0 /* do nothing */ 33 #define p_psTrace(facil, level, ...) (void)0 /* do nothing */ 34 #define psTraceSetLevel(facil,level) 0 35 #define psTraceGetLevel(facil) 0 36 #define psTraceReset() (void)0 /* do nothing */ 37 #define psTraceFree() (void)0 /* do nothing */ 38 #define psTracePrintLevels() (void)0 /* do nothing */ 39 #define psTraceSetDestination(fp) (void)0 /* do nothing */ 40 #else 20 41 21 42 /** Basic structure for the component tree. A component is a string of the … … 31 52 } 32 53 p_psComponent; 33 34 /** \addtogroup LogTrace35 * \{36 */37 38 /** Functions **************************************************************/39 54 40 55 #ifndef DOXYGEN … … 73 88 /* \} */ // End of SystemGroup Functions 74 89 75 //#define PS_NO_TRACE 1 ///< to turn off all tracing 76 77 #if defined(PS_NO_TRACE) 78 # define psTrace(facil, level, ...) /* do nothing */ 79 #else 80 # define psTrace(facil, level, ...) \ 81 p_psTrace(facil, level, __VA_ARGS__) 90 #define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__) 82 91 #endif 83 92 -
trunk/psLib/src/sysUtils/psTrace.c
r1081 r1137 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 24 03:12:19$11 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-30 01:09:12 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 this purpose. 32 32 *****************************************************************************/ 33 34 #ifndef PS_NO_TRACE 35 33 36 #include <stdlib.h> 34 37 #include <stdio.h> … … 418 421 p_psTraceFP = fp; 419 422 } 423 424 #endif -
trunk/psLib/src/sysUtils/psTrace.d
r986 r1137 1 psTrace.o psTrace.d : psTrace.c psMemory.h psTrace.h psString.h psError.h1 psTrace.o psTrace.d : psTrace.c -
trunk/psLib/src/sysUtils/psTrace.h
r1081 r1137 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-06- 24 03:12:19$11 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-06-30 01:09:12 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 #if !defined(PS_TRACE_H) 17 17 #define PS_TRACE_H 1 18 18 19 #define UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 19 20 #define DEFAULT_TRACE_LEVEL 0 21 22 23 /** \addtogroup LogTrace 24 * \{ 25 */ 26 27 /** Functions **************************************************************/ 28 29 //#define PS_NO_TRACE 1 ///< to turn off all tracing 30 31 #if defined(PS_NO_TRACE) 32 #define psTrace(facil, level, ...) (void)0 /* do nothing */ 33 #define p_psTrace(facil, level, ...) (void)0 /* do nothing */ 34 #define psTraceSetLevel(facil,level) 0 35 #define psTraceGetLevel(facil) 0 36 #define psTraceReset() (void)0 /* do nothing */ 37 #define psTraceFree() (void)0 /* do nothing */ 38 #define psTracePrintLevels() (void)0 /* do nothing */ 39 #define psTraceSetDestination(fp) (void)0 /* do nothing */ 40 #else 20 41 21 42 /** Basic structure for the component tree. A component is a string of the … … 31 52 } 32 53 p_psComponent; 33 34 /** \addtogroup LogTrace35 * \{36 */37 38 /** Functions **************************************************************/39 54 40 55 #ifndef DOXYGEN … … 73 88 /* \} */ // End of SystemGroup Functions 74 89 75 //#define PS_NO_TRACE 1 ///< to turn off all tracing 76 77 #if defined(PS_NO_TRACE) 78 # define psTrace(facil, level, ...) /* do nothing */ 79 #else 80 # define psTrace(facil, level, ...) \ 81 p_psTrace(facil, level, __VA_ARGS__) 90 #define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__) 82 91 #endif 83 92
Note:
See TracChangeset
for help on using the changeset viewer.
