Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
879 B

  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. #ifndef _PAX_REGEXP_H
  8. #define _PAX_REGEXP_H
  9. #define NSUBEXP 10
  10. typedef struct regexp {
  11. char *startp[NSUBEXP];
  12. char *endp[NSUBEXP];
  13. char regstart; /* Internal use only. */
  14. char reganch; /* Internal use only. */
  15. char *regmust; /* Internal use only. */
  16. int regmlen; /* Internal use only. */
  17. char program[1]; /* Unwarranted chumminess with compiler. */
  18. } regexp;
  19. /*
  20. * The first byte of the regexp internal "program" is actually this magic
  21. * number; the start node begins in the second byte.
  22. */
  23. #define MAGIC (char)0234
  24. extern regexp *regcomp(char *);
  25. extern int regexec(register regexp *, register char *);
  26. extern void regsub(regexp *, char *, char *);
  27. extern void regerror(char *);
  28. #endif /* _PAX_REGEXP_H */