home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntinc25.zoo / regexp.h < prev    next >
C/C++ Source or Header  |  1992-09-05  |  993b  |  42 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. #ifndef _TYPES_H
  11. #include <types.h>
  12. #endif
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #define CHARBITS 0377
  19. #define NSUBEXP  10
  20. typedef struct regexp {
  21.     char *startp[NSUBEXP];
  22.     char *endp[NSUBEXP];
  23.     char regstart;        /* Internal use only. */
  24.     char reganch;        /* Internal use only. */
  25.     char *regmust;        /* Internal use only. */
  26.     size_t regmlen;        /* Internal use only. */
  27.     char program[1];    /* Unwarranted chumminess with compiler. */
  28. } regexp;
  29.  
  30.  
  31. __EXTERN regexp *regcomp __PROTO((char *_exp));
  32. __EXTERN int     regexec    __PROTO((regexp *_prog, char *_string, int _bolflag));
  33. __EXTERN void regsub    __PROTO((regexp *_prog, char *_source, char *_dest));
  34. __EXTERN void regerror    __PROTO((char *_message));
  35. __EXTERN void regdump __PROTO((regexp *r));
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif /* _REGEXP_H */
  42.