home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 10 / Fresh_Fish_10_2352.bin / new / dev / lang / sgmls / src / trace.h < prev    next >
C/C++ Source or Header  |  1994-07-10  |  5KB  |  114 lines

  1. /* TRACE.H: Declarations for internal trace functions. */
  2.  
  3. #ifdef TRACE
  4.  
  5. /* Trace variables.
  6. */
  7. extern int  trace;            /* Switch: 1=trace state transitions; 0=don't. */
  8. extern int atrace;            /* Switch: 1=trace attribute activity; 0=don't. */
  9. extern int ctrace;            /* Switch: 1=trace context checking; 0=don't. */
  10. extern int dtrace;            /* Switch: 1=trace declaration parsing; 0=don't.*/
  11. extern int etrace;            /* Switch: 1=trace entity activity; 0=don't.*/
  12. extern int gtrace;            /* Switch: 1=trace group creations; 0=don't. */
  13. extern int itrace;            /* Switch: 1=trace ID activity; 0=don't. */
  14. extern int mtrace;            /* Switch: 1=trace MS activity; 0=don't. */
  15. extern int ntrace;            /* Switch: 1=trace data notation activity. */
  16. extern char emd[];            /* For "EMD" parameter type in dtrace calls. */
  17.  
  18. VOID traceadl P((struct ad *));
  19. VOID tracecon P((int,int,int,struct parse *,int,int));
  20. VOID tracedcn P((struct dcncb *));
  21. VOID tracedsk P((struct tag *,struct tag *,int,int));
  22. VOID traceecb P((char *,struct entity *));
  23. VOID traceend P((char *,struct thdr *,struct mpos *,int,int));
  24. VOID traceesn P((struct ne *));
  25. VOID traceetd P((struct etd *));
  26. VOID traceetg P((struct tag *,struct etd *,int,int));
  27. VOID tracegi P((char *,struct etd *,struct thdr *,struct mpos *));
  28. VOID tracegml P((struct restate *,int,int,int));
  29. VOID tracegrp P((struct etd **));
  30. VOID traceid P((char *,struct id *));
  31. VOID tracemd P((char *));
  32. VOID tracemod P((struct thdr *));
  33. VOID tracems P((int,int,int,int));
  34. VOID tracengr P((struct dcncb **));
  35. VOID tracepcb P((struct parse *));
  36. VOID tracepro P((void));
  37. VOID traceset P((void));
  38. VOID tracesrm P((char *,struct entity **,UNCH *));
  39. VOID tracestg P((struct etd *,int,int,struct etd *,int));
  40. VOID tracestk P((struct tag *,int,int));
  41. VOID tracetkn P((int,UNCH *));
  42. VOID traceval P((struct parse *,unsigned int,UNCH *,int));
  43.  
  44. #define TRACEADL(al) ((void)(atrace && (traceadl(al), 1)))
  45. #define TRACECON(etagimct, dostag, datarc, pcb, conrefsw, didreq) \
  46.   ((void)(gtrace \
  47.           && (tracecon(etagimct, dostag, datarc, pcb, conrefsw, didreq), 1)))
  48. #define TRACEDCN(dcn) ((void)(ntrace && (tracedcn(dcn), 1)))
  49. #define TRACEDSK(pts, ptso, ts3, etictr) \
  50.   ((void)(gtrace && (tracedsk(pts, ptso, ts3, etictr), 1)))
  51. #define TRACEECB(action, p) \
  52.   ((void)(etrace && (traceecb(action, p), 1)))
  53. #define TRACEEND(stagenm, mod, pos, rc, opt) \
  54.   ((void)(ctrace && (traceend(stagenm, mod, pos, rc, opt), 1)))
  55. #define TRACEESN(p) \
  56.   ((void)((etrace || atrace || ntrace) && (traceesn(p), 1)))
  57. #define TRACEETD(p) ((void)(gtrace && (traceetd(p), 1)))
  58. #define TRACEETG(pts, curetd, tsl, etagimct) \
  59.   ((void)(gtrace && (traceetg(pts, curetd, tsl, etagimct), 1)))
  60. #define TRACEGI(stagenm, gi, mod, pos) \
  61.   ((void)(ctrace && (tracegi(stagenm, gi, mod, pos), 1)))
  62. #define TRACEGML(scb, pss, conactsw, conact) \
  63.   ((void)(trace && (tracegml(scb, pss, conactsw, conact), 1)))
  64. #define TRACEGRP(p) ((void)(gtrace && (tracegrp(p), 1)))
  65. #define TRACEID(action, p) ((void)(itrace && (traceid(action, p), 1)))
  66. #define TRACEMD(p) ((void)(dtrace && (tracemd(p), 1)))
  67. #define TRACEMOD(p) ((void)(gtrace && (tracemod(p), 1)))
  68. #define TRACEMS(action, code, mslevel, msplevel) \
  69.   ((void)(mtrace && (tracems(action, code, mslevel, msplevel), 1)))
  70. #define TRACENGR(p) ((void)(gtrace && (tracengr(p), 1)))
  71. #define TRACEPCB(p) ((void)(trace && (tracepcb(p), 1)))
  72. #define TRACEPRO() (tracepro())
  73. #define TRACESET() (traceset())
  74. #define TRACESRM(action, pg, gi) \
  75.   ((void)(etrace && (tracesrm(action, pg, gi), 1)))
  76. #define TRACESTG(curetd, dataret, rc, nextetd, mexts) \
  77.   ((void)(gtrace && (tracestg(curetd, dataret, rc, nextetd, mexts), 1)))
  78. #define TRACESTK(pts, ts2, etictr) \
  79.   ((void)(gtrace && (tracestk(pts, ts2, etictr), 1)))
  80. #define TRACETKN(scope, lextoke) \
  81.   ((void)(trace && (tracetkn(scope, lextoke), 1)))
  82. #define TRACEVAL(pcb, atype, aval, tokencnt) \
  83.   ((void)(atrace && (traceval(pcb, atype, aval, tokencnt), 1)))
  84.  
  85. #else /* not TRACE */
  86.  
  87. #define TRACEADL(al) /* empty */
  88. #define TRACECON(etagimct, dostag, datarc, pcb, conrefsw, didreq) /* empty */
  89. #define TRACEDCN(dcn) /* empty */
  90. #define TRACEDSK(pts, ptso, ts3, etictr) /* empty */
  91. #define TRACEECB(action, p) /* empty */
  92. #define TRACEEND(stagenm, mod, pos, rc, opt) /* empty */
  93. #define TRACEESN(p) /* empty */
  94. #define TRACEETG(pts, curetd, tsl, etagimct) /* empty */
  95. #define TRACEETD(p) /* empty */
  96. #define TRACEGI(stagenm, gi, mod, pos) /* empty */
  97. #define TRACEGML(scb, pss, conactsw, conact) /* empty */
  98. #define TRACEGRP(p) /* empty */
  99. #define TRACEID(action, p) /* empty */
  100. #define TRACEMD(p) /* empty */
  101. #define TRACEMOD(p) /* empty */
  102. #define TRACEMS(action, code, mslevel, msplevel) /* empty */
  103. #define TRACENGR(p) /* empty */
  104. #define TRACEPCB(p) /* empty */
  105. #define TRACEPRO() /* empty */
  106. #define TRACESET() /* empty */
  107. #define TRACESRM(action, pg, gi) /* empty */
  108. #define TRACESTG(curetd, dataret, rc, nextetd, mexts) /* empty */
  109. #define TRACESTK(pts, ts2, etictr) /* empty */
  110. #define TRACETKN(scope, lextoke) /* empty */
  111. #define TRACEVAL(pcb, atype, aval, tokencnt) /* empty */
  112.  
  113. #endif /* not TRACE */
  114.