home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_11 / splash / regex.h < prev    next >
Text File  |  1993-01-15  |  763b  |  32 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. #define NSUBEXP  10
  8. typedef struct regexp {
  9.     char *startp[NSUBEXP];
  10.     char *endp[NSUBEXP];
  11.     char regstart;        /* Internal use only. */
  12.     char reganch;        /* Internal use only. */
  13.     char *regmust;        /* Internal use only. */
  14.     int regmlen;        /* Internal use only. */
  15.     char program[1];    /* Unwarranted chumminess with compiler. */
  16. } regexp;
  17.  
  18. /*
  19.  * c++ headers added by Jim Morris.
  20.  */
  21. #ifdef    __cplusplus
  22. extern "C"{
  23. regexp *regcomp(const char *);
  24. int regexec(regexp *, const char *);
  25. }
  26. #else
  27. extern regexp *regcomp();
  28. extern int regexec();
  29. extern void regsub();
  30. extern void regerror();
  31. #endif
  32.