Annotation of src/usr.bin/vim/regexp.h, Revision 1.1
1.1 ! downsj 1: /* $OpenBSD$ */
! 2: /* vi:set ts=4 sw=4:
! 3: * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
! 4: *
! 5: * This is NOT the original regular expression code as written by
! 6: * Henry Spencer. This code has been modified specifically for use
! 7: * with the VIM editor, and should not be used apart from compiling
! 8: * VIM. If you want a good regular expression library, get the
! 9: * original code.
! 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:
! 19: #ifndef _REGEXP_H
! 20: #define _REGEXP_H
! 21:
! 22: #define NSUBEXP 10
! 23: typedef struct regexp
! 24: {
! 25: char_u *startp[NSUBEXP];
! 26: char_u *endp[NSUBEXP];
! 27: char_u regstart; /* Internal use only. */
! 28: char_u reganch; /* Internal use only. */
! 29: char_u *regmust; /* Internal use only. */
! 30: int regmlen; /* Internal use only. */
! 31: char_u program[1]; /* Unwarranted chumminess with compiler. */
! 32: } regexp;
! 33:
! 34: /*
! 35: * The first byte of the regexp internal "program" is actually this magic
! 36: * number; the start node begins in the second byte.
! 37: */
! 38:
! 39: #define MAGIC 0234
! 40:
! 41: #endif /* _REGEXP_H */