home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / elvis / Source / h / regexp < prev    next >
Encoding:
Text File  |  1989-12-31  |  670 b   |  29 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7. #if 0
  8. #define void int
  9. #endif
  10. #define CHARBITS 0377
  11. #ifndef M_SYSV
  12. # define strchr index
  13. #endif
  14. #define NSUBEXP  10
  15. typedef struct regexp {
  16.     char *startp[NSUBEXP];
  17.     char *endp[NSUBEXP];
  18.     char regstart;        /* Internal use only. */
  19.     char reganch;        /* Internal use only. */
  20.     char *regmust;        /* Internal use only. */
  21.     int regmlen;        /* Internal use only. */
  22.     char program[1];    /* Unwarranted chumminess with compiler. */
  23. } regexp;
  24.  
  25. extern regexp *regcomp();
  26. extern int regexec();
  27. extern void regsub();
  28. extern void regerror();
  29.