parser.h Source Code

Go to: Contents; Previous section; Beginning of section; Next file in section; Previous file in section.

Routines In This File (Alphabetical)

 Line Name
----- ----
   41 block_level_dec
   40 block_level_inc
   39 block_level_zero
   38 change_pstate
   44 paren_level_dec
   43 paren_level_inc
   42 paren_level_zero
   33 trace_blint
   32 trace_blmsg
   35 trace_msg
   31 trace_plint
   30 trace_plmsg
   34 trace_state

BEGINNING OF FILE

     1: /****************************************************************************/
     2: /*									    */
     3: /*  FACILITY:	Routine Analyzer					    */
     4: /*									    */
     5: /*  MODULE:	Common Parser Header					    */
     6: /*									    */
     7: /*  AUTHOR:	Steve Branam, Network Product Support Group, Digital	    */
     8: /*		Equipment Corporation, Littleton, MA, USA.		    */
     9: /*									    */
    10: /*  DESCRIPTION: This module contains trace macros for the source parsers.  */
    11: /*									    */
    12: /*  REVISION HISTORY:							    */
    13: /*									    */
    14: /*  V0.1-00 24-AUG-1994 Steve Branam					    */
    15: /*									    */
    16: /*	Original version.						    */
    17: /*									    */
    18: /****************************************************************************/
    19: 
    20: 					    /* Trace strings.		    */
    21: #define PLZERO	"\nTRACE: parenthesis level set to zero\n"
    22: #define PLINC	"\nTRACE: parenthesis level incremented to %d\n"
    23: #define PLDEC	"\nTRACE: parenthesis level decremented to %d\n"
    24: #define BLZERO	"\nTRACE: block level set to zero\n"
    25: #define BLINC	"\nTRACE: block level incremented to %d\n"
    26: #define BLDEC	"\nTRACE: block level decremented to %d\n"
    27: #define BLEND	"\nTRACE: block end found\n"
    28: 
    29: 					    /* Guarded trace macros.	    */

ROUTINE trace_plmsg. Go to: Next routine in file; Routines in this file.

    30: #define trace_plmsg(m)   if(trace_plevel_enabled()) trace_parser(m)
END trace_plmsg. Go to: Beginning of routine.



ROUTINE trace_plint. Go to: Next routine in file; Routines in this file.

    31: #define trace_plint(m,i) if(trace_plevel_enabled()) trace_parser_int(m,i)
END trace_plint. Go to: Beginning of routine.



ROUTINE trace_blmsg. Go to: Next routine in file; Routines in this file.

    32: #define trace_blmsg(m)	 if(trace_blevel_enabled()) trace_parser(m)
END trace_blmsg. Go to: Beginning of routine.



ROUTINE trace_blint. Go to: Next routine in file; Routines in this file.

    33: #define trace_blint(m,i) if(trace_blevel_enabled()) trace_parser_int(m,i)
END trace_blint. Go to: Beginning of routine.



ROUTINE trace_state. Go to: Next routine in file; Routines in this file.

    34: #define trace_state(t,f) if(trace_parser_enabled()) trace_parser_state(t,f)
END trace_state. Go to: Beginning of routine.



ROUTINE trace_msg. Go to: Next routine in file; Routines in this file.

    35: #define trace_msg(m)	 if(trace_parser_enabled()) trace_parser(m)
END trace_msg. Go to: Beginning of routine.


    36: 
    37: 					    /* Traceable action macros.	    */

ROUTINE change_pstate. Go to: Next routine in file; Routines in this file.

    38: #define change_pstate(n) trace_state(mPSNames[state], mPSNames[n]); state = n
END change_pstate. Go to: Beginning of routine.



ROUTINE block_level_zero. Go to: Next routine in file; Routines in this file.

    39: #define block_level_zero()   blevel = 0; trace_blmsg(BLZERO)
END block_level_zero. Go to: Beginning of routine.



ROUTINE block_level_inc. Go to: Next routine in file; Routines in this file.

    40: #define block_level_inc()    blevel++; trace_blint(BLINC, blevel)
END block_level_inc. Go to: Beginning of routine.



ROUTINE block_level_dec. Go to: Next routine in file; Routines in this file.

    41: #define block_level_dec()    blevel--; trace_blint(BLDEC, blevel)
END block_level_dec. Go to: Beginning of routine.



ROUTINE paren_level_zero. Go to: Next routine in file; Routines in this file.

    42: #define paren_level_zero()   plevel = 0; trace_plmsg(PLZERO)
END paren_level_zero. Go to: Beginning of routine.



ROUTINE paren_level_inc. Go to: Next routine in file; Routines in this file.

    43: #define paren_level_inc()    plevel++; trace_plint(PLINC, plevel)
END paren_level_inc. Go to: Beginning of routine.



ROUTINE paren_level_dec. Go to: Next routine in file; Routines in this file.

    44: #define paren_level_dec()    plevel--; trace_plint(PLDEC, plevel)
END paren_level_dec. Go to: Beginning of routine.



END OF FILE TOTAL: 13 routines, 1 Avg Length

Go to: Contents; Previous section; Beginning of section; Next file in section; Previous file in section.