Deleted Added
full compact
regex2.h (36043) regex2.h (62232)
1/*-
2 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
3 * Copyright (c) 1992, 1993, 1994
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Henry Spencer.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)regex2.h 8.4 (Berkeley) 3/20/94
1/*-
2 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
3 * Copyright (c) 1992, 1993, 1994
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Henry Spencer.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)regex2.h 8.4 (Berkeley) 3/20/94
38 *
39 * $FreeBSD: head/lib/libc/regex/regex2.h 62232 2000-06-29 04:48:34Z dcs $
38 */
39
40/*
41 * First, the stuff that ends up in the outside-world include file
42 = typedef off_t regoff_t;
43 = typedef struct {
44 = int re_magic;
45 = size_t re_nsub; // number of parenthesized subexpressions

--- 109 unchanged lines hidden (view full) ---

155# define USEBOL 01 /* used ^ */
156# define USEEOL 02 /* used $ */
157# define BAD 04 /* something wrong */
158 int nbol; /* number of ^ used */
159 int neol; /* number of $ used */
160 int ncategories; /* how many character categories */
161 cat_t *categories; /* ->catspace[-CHAR_MIN] */
162 char *must; /* match must contain this string */
40 */
41
42/*
43 * First, the stuff that ends up in the outside-world include file
44 = typedef off_t regoff_t;
45 = typedef struct {
46 = int re_magic;
47 = size_t re_nsub; // number of parenthesized subexpressions

--- 109 unchanged lines hidden (view full) ---

157# define USEBOL 01 /* used ^ */
158# define USEEOL 02 /* used $ */
159# define BAD 04 /* something wrong */
160 int nbol; /* number of ^ used */
161 int neol; /* number of $ used */
162 int ncategories; /* how many character categories */
163 cat_t *categories; /* ->catspace[-CHAR_MIN] */
164 char *must; /* match must contain this string */
165 int *charjump; /* Boyer-Moore char jump table */
166 int *matchjump; /* Boyer-Moore match jump table */
163 int mlen; /* length of must */
164 size_t nsub; /* copy of re_nsub */
165 int backrefs; /* does it use back references? */
166 sopno nplus; /* how deep does it nest +s? */
167 /* catspace must be last */
168 cat_t catspace[1]; /* actually [NC] */
169};
170
171/* misc utilities */
172#define OUT (CHAR_MAX+1) /* a non-character value */
173#define ISWORD(c) (isalnum((uch)(c)) || (c) == '_')
167 int mlen; /* length of must */
168 size_t nsub; /* copy of re_nsub */
169 int backrefs; /* does it use back references? */
170 sopno nplus; /* how deep does it nest +s? */
171 /* catspace must be last */
172 cat_t catspace[1]; /* actually [NC] */
173};
174
175/* misc utilities */
176#define OUT (CHAR_MAX+1) /* a non-character value */
177#define ISWORD(c) (isalnum((uch)(c)) || (c) == '_')