Deleted Added
full compact
regcomp.c (232601) regcomp.c (247596)
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 * Copyright (c) 2011 The FreeBSD Foundation
7 * All rights reserved.
8 * Portions of this software were developed by David Chisnall

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

37 *
38 * @(#)regcomp.c 8.5 (Berkeley) 3/20/94
39 */
40
41#if defined(LIBC_SCCS) && !defined(lint)
42static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
43#endif /* LIBC_SCCS and not lint */
44#include <sys/cdefs.h>
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 * Copyright (c) 2011 The FreeBSD Foundation
7 * All rights reserved.
8 * Portions of this software were developed by David Chisnall

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

37 *
38 * @(#)regcomp.c 8.5 (Berkeley) 3/20/94
39 */
40
41#if defined(LIBC_SCCS) && !defined(lint)
42static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
43#endif /* LIBC_SCCS and not lint */
44#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/lib/libc/regex/regcomp.c 232601 2012-03-06 12:53:44Z theraven $");
45__FBSDID("$FreeBSD: head/lib/libc/regex/regcomp.c 247596 2013-03-01 23:26:13Z delphij $");
46
47#include <sys/types.h>
48#include <stdio.h>
49#include <string.h>
50#include <ctype.h>
51#include <limits.h>
52#include <stdlib.h>
53#include <regex.h>

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

1207 newranges = realloc(cs->ranges, (cs->nranges + 1) *
1208 sizeof(*cs->ranges));
1209 if (newranges == NULL) {
1210 SETERROR(REG_ESPACE);
1211 return;
1212 }
1213 cs->ranges = newranges;
1214 cs->ranges[cs->nranges].min = min;
46
47#include <sys/types.h>
48#include <stdio.h>
49#include <string.h>
50#include <ctype.h>
51#include <limits.h>
52#include <stdlib.h>
53#include <regex.h>

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

1207 newranges = realloc(cs->ranges, (cs->nranges + 1) *
1208 sizeof(*cs->ranges));
1209 if (newranges == NULL) {
1210 SETERROR(REG_ESPACE);
1211 return;
1212 }
1213 cs->ranges = newranges;
1214 cs->ranges[cs->nranges].min = min;
1215 cs->ranges[cs->nranges].min = max;
1215 cs->ranges[cs->nranges].max = max;
1216 cs->nranges++;
1217}
1218
1219/*
1220 - CHaddtype - add all characters of a certain type to a character set.
1221 */
1222static void
1223CHaddtype(struct parse *p, cset *cs, wctype_t wct)

--- 561 unchanged lines hidden ---
1216 cs->nranges++;
1217}
1218
1219/*
1220 - CHaddtype - add all characters of a certain type to a character set.
1221 */
1222static void
1223CHaddtype(struct parse *p, cset *cs, wctype_t wct)

--- 561 unchanged lines hidden ---