IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1137


Ignore:
Timestamp:
Jun 29, 2004, 3:09:12 PM (22 years ago)
Author:
desonia
Message:

expanded the scope of PS_NO_TRACE to no-op all psTrace functions.

Location:
trunk/psLib/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/Makefile.Globals

    r1041 r1137  
    55##  Assumptions:    Variable "prefix" already defined
    66##
    7 ##  $Revision: 1.11 $  $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 $
    99##
    1010##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444CFLAGS := -O0 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -pipe
    4545
     46ifdef NO_TRACE
     47CFLAGS := $(CFLAGS) -DPS_NO_TRACE=1
     48endif
     49 
    4650# Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries.
    4751
  • trunk/psLib/src/sys/psTrace.c

    r1081 r1137  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.10 $ $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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131 this purpose.
    3232 *****************************************************************************/
     33
     34#ifndef PS_NO_TRACE
     35
    3336#include <stdlib.h>
    3437#include <stdio.h>
     
    418421    p_psTraceFP = fp;
    419422}
     423
     424#endif
  • trunk/psLib/src/sys/psTrace.h

    r1081 r1137  
    99 *  @author George Gusciora, MHPCC
    1010 *
    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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616#if !defined(PS_TRACE_H)
    1717#define PS_TRACE_H 1
     18
    1819#define UNKNOWN_TRACE_LEVEL -9999         // we don't know this name's level
    1920#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
    2041
    2142/** Basic structure for the component tree.  A component is a string of the
     
    3152}
    3253p_psComponent;
    33 
    34 /** \addtogroup LogTrace
    35  *  \{
    36  */
    37 
    38 /** Functions **************************************************************/
    3954
    4055#ifndef DOXYGEN
     
    7388/* \} */ // End of SystemGroup Functions
    7489
    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__)
    8291#endif
    8392
  • trunk/psLib/src/sysUtils/psTrace.c

    r1081 r1137  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.10 $ $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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131 this purpose.
    3232 *****************************************************************************/
     33
     34#ifndef PS_NO_TRACE
     35
    3336#include <stdlib.h>
    3437#include <stdio.h>
     
    418421    p_psTraceFP = fp;
    419422}
     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.h
     1psTrace.o psTrace.d : psTrace.c
  • trunk/psLib/src/sysUtils/psTrace.h

    r1081 r1137  
    99 *  @author George Gusciora, MHPCC
    1010 *
    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 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616#if !defined(PS_TRACE_H)
    1717#define PS_TRACE_H 1
     18
    1819#define UNKNOWN_TRACE_LEVEL -9999         // we don't know this name's level
    1920#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
    2041
    2142/** Basic structure for the component tree.  A component is a string of the
     
    3152}
    3253p_psComponent;
    33 
    34 /** \addtogroup LogTrace
    35  *  \{
    36  */
    37 
    38 /** Functions **************************************************************/
    3954
    4055#ifndef DOXYGEN
     
    7388/* \} */ // End of SystemGroup Functions
    7489
    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__)
    8291#endif
    8392
Note: See TracChangeset for help on using the changeset viewer.