home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / elm / elm2.4 / hdrs / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-14  |  1.3 KB  |  46 lines

  1.  
  2. /* $Id: regexp.h,v 5.3 1992/11/15 01:38:23 syd Exp $ */
  3.  
  4. /*******************************************************************************
  5.  *  The Elm Mail System  -  $Revision: 5.3 $   $State: Exp $
  6.  *
  7.  *             Copyright (c) 1992 USENET Community Trust
  8.  *******************************************************************************
  9.  * Bug reports, patches, comments, suggestions should be sent to:
  10.  *
  11.  *    Syd Weinstein, Elm Coordinator
  12.  *    elm@DSI.COM            dsinc!elm
  13.  *
  14.  *******************************************************************************
  15.  * $Log: regexp.h,v $
  16.  * Revision 5.3  1992/11/15  01:38:23  syd
  17.  * fix headers
  18.  *
  19.  * Revision 5.2  1992/11/15  01:37:57  syd
  20.  * add proper headers
  21.  *
  22.  *
  23.  ******************************************************************************/
  24.  
  25. /*
  26.  * Definitions etc. for regexp(3) routines.
  27.  *
  28.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  29.  * not the System V one.
  30.  */
  31. #define NSUBEXP  10
  32. typedef struct regexp {
  33.     char *startp[NSUBEXP];
  34.     char *endp[NSUBEXP];
  35.     char regstart;        /* Internal use only. */
  36.     char reganch;        /* Internal use only. */
  37.     char *regmust;        /* Internal use only. */
  38.     int regmlen;        /* Internal use only. */
  39.     char program[1];    /* Unwarranted chumminess with compiler. */
  40. } regexp;
  41.  
  42. extern regexp *regcomp();
  43. extern int regexec();
  44. extern void regsub();
  45. extern void regerror();
  46.