home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / sys / dprintf.h < prev    next >
Text File  |  1999-05-11  |  3KB  |  83 lines

  1. /***************************************************************************/
  2. /* IBM CONFIDENTIAL                                                        */
  3. /* OCO Source Materials                                                    */
  4. /* IBM TCP/IP for OS/2                                                     */
  5. /* (c) Copyright IBM Corp 1992,1997                                        */
  6. /* The source code for this program is not published or otherwise          */
  7. /* divested of its trade secrets, irrespective of what has been            */
  8. /* deposited with the U.S. Copyright Office                                */
  9. /***************************************************************************/
  10. /*
  11.  ******************************************************************************
  12.  *
  13.  *  $Author:   SANJAY_KHANNA  $
  14.  *  $Revision:   1.0  $
  15.  *  $Modtime:   25 Aug 1994 11:22:14  $
  16.  *
  17.  *  $Header:   T:\tcp20vcs\basekit\src\convstck\sockets\dprintf.h_v   1.0   06 Oct 1994 13:33:48   SANJAY_KHANNA  $
  18.  *
  19.  *  $Log:   T:\tcp20vcs\basekit\src\convstck\sockets\dprintf.h_v  $
  20.  *
  21.  *    Rev 1.0   06 Oct 1994 13:33:48   SANJAY_KHANNA
  22.  * Initial revision.
  23.  *
  24.  *    Rev 1.2   24 Jan 1994 18:12:06   Jonathan_Rosen
  25.  * - Added D_SLEEP tracing.
  26.  *
  27.  *    Rev 1.1   09 Nov 1993 11:02:26   Jonathan_Rosen
  28.  * - Added prototype for getdbgbuf() to request a copy of the current internal
  29.  *   debug buffer.
  30.  *
  31.  *    Rev 1.0   28 Oct 1993 07:56:36   Jonathan_Rosen
  32.  * Initial revision.
  33.  *
  34.  ******************************************************************************
  35.  ******************************************************************************
  36.  */
  37.  
  38. #define  DPRINTF(_d, _f, _p)      {if((_f) & (_d)) dprintf##_p;}
  39. #define  DVPRINTF(_c, _d, _f, _x, _y) {if((_f) & (_d)) dvprintf(-c, _d, _x, _y);}
  40. #define  IFD(_d, _f, _s)          {if((_f) & (_d)) _s;}
  41.  
  42.  
  43. #define  D_SOCKET       0x00000001
  44. #define  D_SLEEP        0x00000002
  45. #define  D_AFINET       0x00000004         // Added for (debug_flag & D_FLAG) for afos2
  46. #define  D_AFOS2        0x00000008         // Added for (debug_flag & D_FLAG) for afinet
  47. #define  D_TCPDEBUG     0x00000010         // Added for (debug_flag & D_FLAG) for TCPDEBUG
  48. #define  D_TOBUFFER     0x00800000
  49. #define  D_ALL          0x00ffffff
  50. #define  D_NOCKSUM      0x01000000
  51.  
  52.  
  53. #ifdef SOCKETS
  54. extern long dvprintf();
  55. //extern int dprintf();
  56. extern long dprintf(short ComPort, u_long debug_flag, char  *fmt, ...);
  57. extern u_short getdbgbuf(char *buf, u_short len);
  58. extern u_long dbgexp(char *str);
  59. extern char * dbgflags(char *buf, u_long debug);
  60.  
  61. extern char *DbgBuf;
  62. extern char *DbgBufPtr;
  63.  
  64. #else
  65.  
  66. #ifndef _16BITCODE
  67. extern unsigned long *_debug_flag_p;
  68. #undef debug_flag
  69. #define debug_flag *_debug_flag_p
  70.  
  71. #else
  72.  
  73. extern unsigned long *debug_flag_p;
  74. #undef debug_flag
  75. #define debug_flag *debug_flag_p
  76.  
  77. #endif
  78. #endif
  79.  
  80.  
  81.  
  82.  
  83.