typedef struct ADVANCEDSET
{
    BOOL Block1024;
    BOOL CRC;
} ADVANCEDSET;

typedef struct INSTANCEDATA
{
   int   Retries;
   int   PCState;
   int   BBegin;
   int   EndRecord;
   int   BPos;
   BOOL  Aborting;
   BYTE  pdCRC;
   int   RCnt;
} INSTANCEDATA;

static void PASCAL RXING (void);
static void PASCAL WAITACK (void);
static void PASCAL NOCHAR (void);
static void PASCAL StartXRecord (int dlen, LPSTR data);
static int  PASCAL WaitingForAck (void);
static int  PASCAL GetXRecord (void);
static void PASCAL ymodem_tx (void);
static void PASCAL End_It (int);
static void PASCAL LastError (int);
static BOOL PASCAL FileRxTX (int send, LPSTR ptr);
static void PASCAL StatusLine (UINT index, LPSTR lptr);

extern PASCAL getftime (int);
extern PASCAL getfdate (int);
