home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / libs / regexp / original / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-19  |  637 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.  *    $NetBSD: regexp.h,v 1.3 1997/10/09 10:21:21 lukem 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.