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

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