regexec.c (8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c) regexec.c (4047df8d249eb931f75bb645dee9761946216fbd)
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 *

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

151 = #define REG_BACKR 02000 // force use of backref code
152 *
153 * We put this here so we can exploit knowledge of the state representation
154 * when choosing which matcher to call. Also, by this point the matchers
155 * have been prototyped.
156 */
157int /* 0 success, REG_NOMATCH failure */
158regexec(preg, string, nmatch, pmatch, eflags)
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 *

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

151 = #define REG_BACKR 02000 // force use of backref code
152 *
153 * We put this here so we can exploit knowledge of the state representation
154 * when choosing which matcher to call. Also, by this point the matchers
155 * have been prototyped.
156 */
157int /* 0 success, REG_NOMATCH failure */
158regexec(preg, string, nmatch, pmatch, eflags)
159const regex_t *preg;
160const char *string;
159const regex_t * __restrict preg;
160const char * __restrict string;
161size_t nmatch;
161size_t nmatch;
162regmatch_t pmatch[];
162regmatch_t pmatch[__restrict];
163int eflags;
164{
165 struct re_guts *g = preg->re_g;
166#ifdef REDEBUG
167# define GOODFLAGS(f) (f)
168#else
169# define GOODFLAGS(f) ((f)&(REG_NOTBOL|REG_NOTEOL|REG_STARTEND))
170#endif

--- 13 unchanged lines hidden ---
163int eflags;
164{
165 struct re_guts *g = preg->re_g;
166#ifdef REDEBUG
167# define GOODFLAGS(f) (f)
168#else
169# define GOODFLAGS(f) ((f)&(REG_NOTBOL|REG_NOTEOL|REG_STARTEND))
170#endif

--- 13 unchanged lines hidden ---