home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 019.lha / Aterm / lckdeb.h < prev    next >
C/C++ Source or Header  |  1986-11-10  |  3KB  |  116 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 unsigned char CHAR;
  54. #endif
  55. #endif
  56.  
  57. #ifdef TOWER1
  58. typedef int void;
  59. #endif
  60.  
  61. /* Line delimiter for text files */
  62.  
  63. /*
  64.  If the system uses a single character for text file line delimitation,
  65.  define NLCHAR to the value of that character.    For text files, that
  66.  character will be converted to CRLF upon output, and CRLF will be converted
  67.  to that character on input.
  68. */
  69. #ifdef MAC                /* Macintosh */
  70. #define NLCHAR 015
  71. #else                    /* All Unix-like systems */
  72. #define NLCHAR '\n'
  73. #endif
  74. /*
  75.  At this point, if there's a system that uses ordinary CRLF line
  76.  delimitation AND the C compiler actually returns both the CR and
  77.  the LF when doing input from a file, then #undef NLCHAR.
  78. */
  79.  
  80. #define DEL    127
  81. #define CR    13
  82. #define LF    10
  83.  
  84. /* The device name of a job's controlling terminal */
  85. /* Special for VMS, same for all Unixes (?), not used by Macintosh */
  86.  
  87. #ifdef vax11c
  88. #define CTTNAM "TT:"
  89. #else
  90. #define CTTNAM "/dev/tty"
  91. #endif
  92.  
  93.  
  94.  
  95. /* Some special includes for VAX/VMS */
  96.  
  97. #ifdef vax11c
  98. #include ssdef
  99. #include stsdef
  100. #endif
  101.  
  102. /* Program return codes for VMS, DECUS C, and Unix */
  103.  
  104. #ifdef vax11c
  105. #define GOOD_EXIT   (SS$_NORMAL | STS$M_INHIB_MSG)
  106. #define BAD_EXIT    SS$_ABORT
  107. #else
  108. #ifdef decus
  109. #define GOOD_EXIT   IO_NORMAL
  110. #define BAD_EXIT    IO_ERROR
  111. #else
  112. #define GOOD_EXIT   0
  113. #define BAD_EXIT    1
  114. #endif
  115. #endif
  116.