home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / awm2 / part12 / support.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-21  |  1.7 KB  |  58 lines

  1.  
  2. #ifndef lint
  3. static char *rcsid_support_h = "$Header: /usr/graph2/X11.3/contrib/windowmgrs/awm/RCS/support.h,v 1.2 89/02/07 21:25:51 jkh Exp $";
  4. #endif  lint
  5.  
  6. #include "X11/copyright.h"
  7. /*
  8.  *
  9.  * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  10.  *
  11.  * Copyright 1987 by Jordan Hubbard.
  12.  *
  13.  *
  14.  *                         All Rights Reserved
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software and its
  17.  * documentation for any purpose and without fee is hereby granted,
  18.  * provided that the above copyright notice appear in all copies and that
  19.  * both that copyright notice and this permission notice appear in
  20.  * supporting documentation, and that the name of Ardent Computer
  21.  * Corporation or Jordan Hubbard not be used in advertising or publicity
  22.  * pertaining to distribution of the software without specific, written
  23.  * prior permission.
  24.  *
  25.  */
  26.  
  27. #undef STACK_RTNAMES
  28. #undef TRACE
  29.  
  30. #ifdef TRACE
  31. #define Entry(woo) { printf("Pushing to %s\n", woo); push_rtn(woo); }
  32. #define Leave(woo) { printf("Pop from %s with %x\n", curr_rtn(), woo); pop_rtn(); return(woo); }
  33. #define Leave_void { printf("Pop from %s (void)\n", curr_rtn()); pop_rtn(); return; }
  34. #define Trace_on _rtn_trace = 1;
  35. #define Trace_off _rtn_trace = 0;
  36. extern char *curr_rtn();
  37. extern int _rtn_level;
  38. extern int _rtn_trace;
  39. #else
  40. #ifdef SAVERTNAME
  41. #define Entry(woo) push_rtn(woo);
  42. #define Leave(woo) { pop_rtn(); return(woo); }
  43. #define Leave_void { pop_rtn(); return; }
  44. #define Trace_on _rtn_trace = 1;
  45. #define Trace_off _rtn_trace = 0;
  46. extern char *curr_rtn();
  47. extern int _rtn_level;
  48. extern int _rtn_trace;
  49. #else
  50. #define Entry(s)
  51. #define Leave(s) return(s);
  52. #define Leave_void return;
  53. #define Trace_on
  54. #define Trace_off
  55. #define Curr_rtn()
  56. #endif /* SAVERTNAME */
  57. #endif /* TRACE */
  58.