bm.h 542 B

1234567891011121314151617
  1. #define FIRSTCHAR ' '
  2. #define MAXCHAR 0377
  3. #define MAXBUFF 8192
  4. #define MAXSIZE 100
  5. #define MAXPATS 100 /* max number of patterns */
  6. #define PSIZEDEF 1024 /* space for patterns if they come from a tty */
  7. #define min(x,y) ((x) < (y) ? (x) : (y))
  8. #define max(x,y) ((x) > (y) ? (x) : (y))
  9. struct PattDesc {
  10. short unsigned int *Skip1, *Skip2; /* pointers to skip tables */
  11. char *Pattern;
  12. int PatLen; /* pattern length */
  13. char *Start;
  14. /* starting position of search (at beginning of pattern) */
  15. int Success; /* true when pattern found */
  16. };