home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / nshellmegasource1.50 / mega src / lib / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-26  |  797 b   |  34 lines  |  [TEXT/KAHL]

  1. /*
  2.  *
  3.  * Definitions etc. for regexp(3) routines.
  4.  *
  5.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  6.  * not the System V one.
  7.  *
  8.  
  9.  =
  10.  = This file combines elements of "regexp.h" and "regmagic.h", by Henry Spencer.
  11.  =    
  12.  = See the "regexp.c" in this package for more information.
  13.  =    
  14.  */
  15.  
  16. #define NSUBEXP  10
  17.  
  18. typedef struct regexp {
  19.     char *startp[NSUBEXP];
  20.     char *endp[NSUBEXP];
  21.     char regstart;        /* Internal use only. */
  22.     char reganch;        /* Internal use only. */
  23.     char *regmust;        /* Internal use only. */
  24.     long regmlen;        /* Internal use only. */
  25.     char program[1];    /* Unwarranted chumminess with compiler. */
  26. } regexp;
  27.  
  28. /*
  29.  * The first byte of the regexp internal "program" is actually this magic
  30.  * number; the start node begins in the second byte.
  31.  */
  32.  
  33. #define    MAGIC    0234
  34.