Deleted Added
full compact
regengine.inc (206274) regengine.inc (207618)
1/*-
2 * This code is derived from OpenBSD's libc/regex, original license follows:
3 *
4 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5 * Copyright (c) 1992, 1993, 1994
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

180 SETUP(m->empty);
181 CLEAR(m->empty);
182
183 /* this loop does only one repetition except for backrefs */
184 for (;;) {
185 endp = fast(m, start, stop, gf, gl);
186 if (endp == NULL) { /* a miss */
187 free(m->pmatch);
1/*-
2 * This code is derived from OpenBSD's libc/regex, original license follows:
3 *
4 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5 * Copyright (c) 1992, 1993, 1994
6 * The Regents of the University of California. All rights reserved.
7 *
8 * This code is derived from software contributed to Berkeley by

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

180 SETUP(m->empty);
181 CLEAR(m->empty);
182
183 /* this loop does only one repetition except for backrefs */
184 for (;;) {
185 endp = fast(m, start, stop, gf, gl);
186 if (endp == NULL) { /* a miss */
187 free(m->pmatch);
188 free(m->lastpos);
188 free((void*)m->lastpos);
189 STATETEARDOWN(m);
190 return(REG_NOMATCH);
191 }
192 if (nmatch == 0 && !g->backrefs)
193 break; /* no further info needed */
194
195 /* where? */
196 assert(m->coldp != NULL);

--- 838 unchanged lines hidden ---
189 STATETEARDOWN(m);
190 return(REG_NOMATCH);
191 }
192 if (nmatch == 0 && !g->backrefs)
193 break; /* no further info needed */
194
195 /* where? */
196 assert(m->coldp != NULL);

--- 838 unchanged lines hidden ---