regexec.c (104358) | regexec.c (111010) |
---|---|
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 * --- 27 unchanged lines hidden (view full) --- 36 * 37 * @(#)regexec.c 8.3 (Berkeley) 3/20/94 38 */ 39 40#if defined(LIBC_SCCS) && !defined(lint) 41static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; 42#endif /* LIBC_SCCS and not lint */ 43#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 * This code is derived from software contributed to Berkeley by 7 * Henry Spencer. 8 * --- 27 unchanged lines hidden (view full) --- 36 * 37 * @(#)regexec.c 8.3 (Berkeley) 3/20/94 38 */ 39 40#if defined(LIBC_SCCS) && !defined(lint) 41static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; 42#endif /* LIBC_SCCS and not lint */ 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/lib/libc/regex/regexec.c 104358 2002-10-02 07:49:35Z mike $"); | 44__FBSDID("$FreeBSD: head/lib/libc/regex/regexec.c 111010 2003-02-16 17:29:11Z nectar $"); |
45 46/* 47 * the outer shell of regexec() 48 * 49 * This file includes engine.c *twice*, after muchos fiddling with the 50 * macros that code uses. This lets the same code operate on two different 51 * representations for state sets. 52 */ 53#include <sys/types.h> 54#include <stdio.h> 55#include <stdlib.h> 56#include <string.h> 57#include <limits.h> 58#include <ctype.h> 59#include <regex.h> 60 61#include "utils.h" 62#include "regex2.h" 63 | 45 46/* 47 * the outer shell of regexec() 48 * 49 * This file includes engine.c *twice*, after muchos fiddling with the 50 * macros that code uses. This lets the same code operate on two different 51 * representations for state sets. 52 */ 53#include <sys/types.h> 54#include <stdio.h> 55#include <stdlib.h> 56#include <string.h> 57#include <limits.h> 58#include <ctype.h> 59#include <regex.h> 60 61#include "utils.h" 62#include "regex2.h" 63 |
64static int nope = 0; /* for use in asserts; shuts lint up */ | 64static int nope __unused = 0; /* for use in asserts; shuts lint up */ |
65 66/* macros for manipulating states, small version */ 67#define states long 68#define states1 states /* for later use in regexec() decision */ 69#define CLEAR(v) ((v) = 0) 70#define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) 71#define SET1(v, n) ((v) |= (unsigned long)1 << (n)) 72#define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) --- 111 unchanged lines hidden --- | 65 66/* macros for manipulating states, small version */ 67#define states long 68#define states1 states /* for later use in regexec() decision */ 69#define CLEAR(v) ((v) = 0) 70#define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) 71#define SET1(v, n) ((v) |= (unsigned long)1 << (n)) 72#define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) --- 111 unchanged lines hidden --- |