rcos.hh

//***********************************************************************
//  MODULE : RCOS - Common defines and types                            *
//  AUTHOR : Ron Chernich                                               *
//  PURPOSE: Define types common accross the RCOS system                *
//  HISTORY:                                                            *
//   18-JAN-93  First (MSC/C++ 7.00) version                            *
//   26-MAR-93  Priority definition added                               *
//   20-APR-93  Provision for Line Protocol Drivers and better BOOL def *
//   01-FEB-94  Integers fully typedef'ed to improve portability.       *
//   14-MAR-95  Number of user terminals made more dynamic              *
//***********************************************************************

#ifndef _RCOS_

  #include 
  
  //*****************************
  // Compiler Defines
  //    COMPILER                DEFINES
  //    Borland C++ 3.1         #define BC31
  //    Borland C++ 2.0         #define BC31    &
  //                            #define BC20
  //    Microsoft 7.0           #define MSC700
  //    Symantec 6.0            #define SYM60
  //    UNIX/X11                #define UNIX

//  #define BC31
//  #define BC20
//  #define MSC700
  #define UNIX

  ////////////
  // This define should be TRUE for all MS-DOS based systems..
  //
  #if defined(MSC700) || defined(BC31) || defined(SYM60)
    #define     _DOS_ENV
  #endif
  
  ///////////////////////////
  // Borland 2.0 doesn't understand delete[]
  #ifdef BC20
	#define DELETE_ARRAY delete
  #else
	#define DELETE_ARRAY delete[]
  #endif

  //////////////
  // general purpose macros..
  //
  #define MAX(i,j)    ((i>j)?(i):(j))
  #define MIN(i,j)    ((i