home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / compsci / arcsgm.cpt / ARC SGML 1.0 / sgmlh / envcb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-15  |  1.4 KB  |  22 lines

  1. /******************************************************************************/
  2. /* ENVCB.H: Control blocks used by text processor environment.
  3. */
  4. /******************************************************************************/
  5. typedef FILE * HANDLE;           /* Stream I/O: handle is file pointer. */
  6. /******************************************************************************/
  7. struct iofcb {                /* I/O file control block. */
  8.      HANDLE fcbfd;            /* DOS file handle. */
  9.      long fcboff;             /* Offset in file of current read block. */
  10.      UNCH *fcbxid;            /* External ID string. */
  11.      UNCH *fcbnext;           /* Next file in fcbxid (NULL if no more). */
  12.      UNCH fcbfile[FILESPEC+2];/* Full system fileid (length + EOS). */
  13.      int fcbcatsw;            /* 1=catenate next file on next read; 0=no. */
  14.      int fcbRS;               /* 1=prefix RS to first file of entity; 0=no. */
  15.      int fcbRE;               /* 1=strip RE from last file of entity; 0=no. */
  16.      int fcbfirst;            /* 1=next read will be the first; 0=no. */
  17.      int fcbpend;                /* 1=prefix RS to next read; 0=no. */
  18. };
  19. #define IPBFCB ((struct iofcb *)io->ipbn)      /* IPBFILE: Ptr to SGMLIO fcb. */
  20. #define FLID (((struct iofcb *)SCBFCB)->fcbfile)/* Actual fileid of file. */
  21. /******************************************************************************/
  22.