home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / Linux / Cygwin / full.exe / Disk1 / data1.cab / Tools / H-i586-cygwin32 / i586-cygwin32 / include / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-04  |  632 b   |  25 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.  *    $Id: regexp.h,v 1.1 1997/10/07 21:54:10 noer Exp $
  8.  */
  9.  
  10. #define NSUBEXP  10
  11. typedef struct regexp {
  12.     char *startp[NSUBEXP];
  13.     char *endp[NSUBEXP];
  14.     char regstart;        /* Internal use only. */
  15.     char reganch;        /* Internal use only. */
  16.     char *regmust;        /* Internal use only. */
  17.     int regmlen;        /* Internal use only. */
  18.     char program[1];    /* Unwarranted chumminess with compiler. */
  19. } regexp;
  20.  
  21. extern regexp *regcomp();
  22. extern int regexec();
  23. extern void regsub();
  24. extern void regerror();
  25.