Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.1 KiB

  1. /**--------------------------- Debugging ------------------------**/
  2. #define SZMOD "T30: "
  3. #ifdef DEBUG
  4. extern DBGPARAM dpCurSettings;
  5. # define ZONE_T30 ((1L << 0) & dpCurSettings.ulZoneMask)
  6. # define ZONE_ECM ((1L << 1) & dpCurSettings.ulZoneMask)
  7. # define ZONE_SWECM ZONE_ECM
  8. # define ZONE_HD ((1L << 2) & dpCurSettings.ulZoneMask)
  9. # define ZONE_BG ((1L << 3) & dpCurSettings.ulZoneMask)
  10. # define ZONE_FRAMES ((1L << 4) & dpCurSettings.ulZoneMask)
  11. # define ZONE_MAIN ((1L << 5) & dpCurSettings.ulZoneMask)
  12. # define ZONE_BUFS ((1L << 12) & dpCurSettings.ulZoneMask)
  13. # define ZONE_FIL ((1L << 13) & dpCurSettings.ulZoneMask)
  14. # define ZONE_TIMEOUT ((1L << 14) & dpCurSettings.ulZoneMask)
  15. # define ZONE_TO ((1L << 15) & dpCurSettings.ulZoneMask)
  16. # define ZONE_IFP ((1L << 7) & dpCurSettings.ulZoneMask)
  17. #endif
  18. #ifdef DEBUG
  19. # define ST_FRAMES(x) if(ZONE_FRAMES) { x; }
  20. #else
  21. # define ST_FRAMES(x) { }
  22. #endif
  23. #define MODID MODID_AWT30
  24. #define FILEID_ECM 1
  25. #define FILEID_FILTER 2
  26. #define FILEID_HDLC 3
  27. #define FILEID_T30 4
  28. #define FILEID_T30MAIN 5
  29. #define FILEID_TIMEOUTS 6
  30. #define FILEID_IFP 7
  31. #define FILEID_SWECM 8
  32. #ifdef PDUMP // Protocol Dump
  33. void RestartDump(PThrdGlbl pTG);
  34. void DumpFrame(PThrdGlbl pTG, BOOL fSend, IFR ifr, USHORT cbFIF, LPBYTE lpbFIF);
  35. void PrintDump(PThrdGlbl pTG);
  36. #else
  37. # define RestartDump(PThrdGlbl pTG)
  38. # define DumpFrame(PThrdGlbl pTG, fSend, ifr, cbFIF, lpbFIF)
  39. # define PrintDump(PThrdGlbl pTG)
  40. #endif
  41. #ifdef DEBUG
  42. void D_PrintFrame(LPB lpb, UWORD cb);
  43. #else
  44. # define D_PrintFrame(lpb, cb) {}
  45. #endif
  46. // errmsg for echo protection code
  47. #define ECHOMSG(ifr) RETAILMSG((SZMOD "WARNING: Ignoring ECHO of %s(%d)\r\n", (LPSTR)(rgFrameInfo[ifr].szName), ifr));