This file is included by all C-Kermit modules, including the modules
that aren't specific to Kermit (like the command parser and the ck?tio and
ck?fio modules. It specifies format codes for debug(), tlog(), and similar
functions, and includes any necessary typedefs to be used by all C-Kermit
modules, and also includes some feature selection compile-time switches.
Copyright (C) 1985, Trustees of Columbia University in the City of New York.
Permission is granted to any individual or institution to use, copy, or
redistribute this software so long as it is not sold for profit, provided this
copyright notice is retained.
DEBUG and TLOG should be defined in the Makefile if you want debugging
and transaction logs. Don't define them if you want to save the space
#define debug(a,b,c,d) {}
/* Formats for debug(), tlog(), etc */
/* Compiler dependencies */
typedef unsigned char CHAR
;
/* Line delimiter for text files */
If the system uses a single character for text file line delimitation,
define NLCHAR to the value of that character. For text files, that
character will be converted to CRLF upon output, and CRLF will be converted
to that character on input.
#ifdef MAC /* Macintosh */
#else /* All Unix-like systems */
At this point, if there's a system that uses ordinary CRLF line
delimitation AND the C compiler actually returns both the CR and
the LF when doing input from a file, then #undef NLCHAR.
/* The device name of a job's controlling terminal */
/* Special for VMS, same for all Unixes (?), not used by Macintosh */
#define CTTNAM "/dev/tty"
/* Some special includes for VAX/VMS */
/* Program return codes for VMS, DECUS C, and Unix */
#define GOOD_EXIT (SS$_NORMAL | STS$M_INHIB_MSG)
#define BAD_EXIT SS$_ABORT
#define GOOD_EXIT IO_NORMAL
#define BAD_EXIT IO_ERROR