Windows NT 4.0 source code leak
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.

36 lines
1.2 KiB

4 years ago
  1. /*
  2. * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  3. *
  4. * This is NOT the original regular expression code as written by
  5. * Henry Spencer. This code has been modified specifically for use
  6. * with the STEVIE editor, and should not be used apart from compiling
  7. * STEVIE. If you want a good regular expression library, get the
  8. * original code. The copyright notice that follows is from the
  9. * original.
  10. *
  11. * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  12. *
  13. * Definitions etc. for regexp(3) routines.
  14. *
  15. * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
  16. * not the System V one.
  17. */
  18. #define NSUBEXP 10
  19. typedef struct regexp {
  20. char *startp[NSUBEXP];
  21. char *endp[NSUBEXP];
  22. char regstart; /* Internal use only. */
  23. char reganch; /* Internal use only. */
  24. char *regmust; /* Internal use only. */
  25. int regmlen; /* Internal use only. */
  26. char program[1]; /* Unwarranted chumminess with compiler. */
  27. } regexp;
  28. extern regexp *regcomp();
  29. extern int regexec();
  30. extern void regsub();
  31. extern void regerror();
  32. #ifndef ORIGINAL
  33. extern int reg_ic; /* set non-zero to ignore case in searches */
  34. #endif