home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / mntinc16 / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  820 b   |  29 lines

  1. /* The <regexp.h> header is used by the (V8-compatible) regexp(3) routines. */
  2.  
  3. #ifndef _REGEXP_H
  4. #define _REGEXP_H
  5.  
  6. #ifndef _COMPILER_H
  7. #include <compiler.h>
  8. #endif
  9.  
  10. #define CHARBITS 0377
  11. #define NSUBEXP  10
  12. typedef struct regexp {
  13.     char *startp[NSUBEXP];
  14.     char *endp[NSUBEXP];
  15.     char regstart;        /* Internal use only. */
  16.     char reganch;        /* Internal use only. */
  17.     char *regmust;        /* Internal use only. */
  18.     int regmlen;        /* Internal use only. */
  19.     char program[1];    /* Unwarranted chumminess with compiler. */
  20. } regexp;
  21.  
  22.  
  23. __EXTERN regexp *regcomp __PROTO((char *_exp));
  24. __EXTERN int     regexec    __PROTO((regexp *_prog, char *_string, int _bolflag));
  25. __EXTERN void regsub    __PROTO((regexp *_prog, char *_source, char *_dest));
  26. __EXTERN void regerror    __PROTO((char *_message));
  27.  
  28. #endif /* _REGEXP_H */
  29.