home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / pub / wkermit / lckdeb.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  3KB  |  114 lines

  1. /*  C K C D E B . H  */
  2.  
  3. /*
  4.  This file is included by all C-Kermit modules, including the modules
  5.  that aren't specific to Kermit (like the command parser and the ck?tio and
  6.  ck?fio modules.  It specifies format codes for debug(), tlog(), and similar
  7.  functions, and includes any necessary typedefs to be used by all C-Kermit
  8.  modules, and also includes some feature selection compile-time switches.
  9. */
  10. /*
  11.  Copyright (C) 1985, Trustees of Columbia University in the City of New York.
  12.  Permission is granted to any individual or institution to use, copy, or
  13.  redistribute this software so long as it is not sold for profit, provided this
  14.  copyright notice is retained.
  15. */
  16.  
  17. /*
  18.  DEBUG and TLOG should be defined in the Makefile if you want debugging
  19.  and transaction logs.    Don't define them if you want to save the space
  20.  and overhead.
  21. */
  22. #ifndef DEBUG
  23. #define debug(a,b,c,d) {}
  24. #endif
  25.  
  26. #ifndef TLOG
  27. #define tlog(a,b,c,d) {}
  28. #endif
  29.  
  30. /* Formats for debug(), tlog(), etc */
  31.  
  32. #define F000 0
  33.  
  34. #define F001 1
  35. #define F010 2
  36. #define F011 3
  37. #define F100 4
  38. #define F101 5
  39. #define F110 6
  40. #define F111 7
  41.  
  42. /* Compiler dependencies */
  43.  
  44. #ifdef PROVX1
  45. typedef char CHAR;
  46. typedef long LONG;
  47. typedef int void;
  48. #else
  49. #ifdef    V7
  50. typedef char CHAR;
  51. typedef long LONG;
  52. #else
  53. typedef char CHAR;
  54. typedef long LONG;
  55. #endif
  56. #endif
  57.  
  58. #ifdef TOWER1
  59. typedef int void;
  60. #endif
  61.  
  62. /* Line delimiter for text files */
  63.  
  64. /*
  65.  If the system uses a single character for text file line delimitation,
  66.  define NLCHAR to the value of that character.    For text files, that
  67.  character will be converted to CRLF upon output, and CRLF will be converted
  68.  to that character on input.
  69. */
  70. #ifdef MAC                /* Macintosh */
  71. #define NLCHAR 015
  72. #else                    /* All Unix-like systems */
  73. #define NLCHAR 012
  74. #endif
  75. /*
  76.  At this point, if there's a system that uses ordinary CRLF line
  77.  delimitation AND the C compiler actually returns both the CR and
  78.  the LF when doing input from a file, then #undef NLCHAR.
  79. */
  80.  
  81. /* The device name of a job's controlling terminal */
  82. /* Special for VMS, same for all Unixes (?), not used by Macintosh */
  83.  
  84. #ifdef vax11c
  85. #define CTTNAM "TT:"
  86. #else
  87. #define CTTNAM "/dev/tty"
  88. #endif
  89.  
  90.  
  91.  
  92. /* Some special includes for VAX/VMS */
  93.  
  94. #ifdef vax11c
  95. #include ssdef
  96. #include stsdef
  97. #endif
  98.  
  99. /* Program return codes for VMS, DECUS C, and Unix */
  100.  
  101. #ifdef vax11c
  102. #define GOOD_EXIT   (SS$_NORMAL | STS$M_INHIB_MSG)
  103. #define BAD_EXIT    SS$_ABORT
  104. #else
  105. #ifdef decus
  106. #define GOOD_EXIT   IO_NORMAL
  107. #define BAD_EXIT    IO_ERROR
  108. #else
  109. #define GOOD_EXIT   0
  110. #define BAD_EXIT    1
  111. #endif
  112. #endif
  113.  
  114.