home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / fileutil / scan.lha / src / scan.h < prev    next >
C/C++ Source or Header  |  1992-05-21  |  2KB  |  42 lines

  1. #define LWIDTH 80 /* Short line width */
  2. #define LONGWIDTH 256 /* Long line width */
  3. #define MAXDUP 512
  4. #define MAXMTS 128 /* Max # of major terms. Can't be over 128 */
  5. #define T1 23
  6. #define T2 21
  7. #define T3 64
  8. #define OVERLAP 512 /* Overlap between input buffs. Also max sentence length */
  9. #define MAXKWSZ  28 /* Size of max keyword expected                          */
  10. #define NODEBUG /* define either DEBUG or NODEBUG */
  11. #define MAXBRAKS 7 /* max num of ['s in a major term */
  12. typedef char Lines[LWIDTH];
  13. typedef char LLines[LONGWIDTH];
  14. typedef unsigned char BrakTyp1[LWIDTH];
  15. typedef char *BrakTyp2[MAXBRAKS];
  16. /* this code requires that CurFib be 1st element in this structure */
  17. struct DirInfoBlock {
  18.    struct FileInfoBlock CurFib;
  19.    BPTR CurLock, TmpLock, OldLock;
  20.    struct DirInfoBlock *BackLink;
  21. };
  22. typedef struct FileInfoBlock FIB;
  23. typedef struct DirInfoBlock DIB;
  24. #define XFI         struct _XFI
  25. #define MSGPORT     struct MsgPort
  26. #define FH          struct FileHandle
  27. #define STDPKT      struct StandardPacket
  28.  
  29. XFI {
  30.     char    pend;       /*  packet pending              */
  31.     char    err;        /*  cumulative error            */
  32.     char    reserved;   /*  needed to align following strucs to longword */
  33.     char    rsvd;       /*  needed to align following strucs to longword */
  34.     char    *asbuf;
  35.     char    *usbuf;
  36.     char    *zsbuf;
  37.     FH      *fh;
  38.     STDPKT  sp;         /*  asyncronous message         */
  39.     MSGPORT rp;         /*  reply port for pending pkts */
  40. };
  41.  
  42.