home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compiler / small_c / cb / sources / tools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1985-09-15  |  1.4 KB  |  41 lines

  1. /*
  2. ** Small-Tools definitions.
  3. **
  4. ** The metacharacter definitions do not completely
  5. ** follow UNIX or the Software-Tools definitions.
  6. **
  7. ** You may change anything to suit your preferences.
  8. */
  9. #define MAXFN      30  /* max file name space */
  10. #define EXTMARK    '.' /* file extension mark */
  11. #define MAXLINE   192  /* max text line space */
  12.  
  13. #define CLEAR "\33[2J" /* screen erase, requires ANSI.SYS */
  14. #define CRTWIDE    80  /* screen width */
  15. #define CRTHIGH    24  /* screen height */
  16.  
  17. #define PTRWIDE    80  /* page width */
  18. #define PTRHIGH    66  /* page height */
  19. #define PTRSKIP     8  /* page perforation skips */
  20. #define PTRHDR      2  /* page header lines */
  21.  
  22. #define MAXPAT    257  /* max pattern in internal format */
  23. #define CHAR       'c' /* identifies a character */
  24. #define BOL       '\"' /* beginning of line */
  25. #define EOL       '\'' /* end of line */
  26. #define ANY        '?' /* any character */
  27. #define CCL        '[' /* begin character class */
  28. #define NCCL       '~' /* negation of character class */
  29. #define CCLEND     ']' /* end of character class */
  30. #define CLOSURE    '*' /* zero or more occurrences */
  31. #define DITTO      '^' /* whatever string matches pattern */
  32. #define ESCAPE     ':' /* escape character */
  33. #define NOT        '~' /* negation character */
  34.  
  35. #define DITCODE    -3  
  36. #define COUNT       1
  37. #define PREVCL      2
  38. #define START       3
  39. #define CLOSIZE     4
  40.  
  41.