regexec.c (208954) | regexec.c (218893) |
---|---|
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 --- 40 unchanged lines hidden (view full) --- 49#include <limits.h> 50#include <ctype.h> 51#include "regex_impl.h" 52 53#include "regutils.h" 54#include "regex2.h" 55 56/* macros for manipulating states, small version */ | 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 --- 40 unchanged lines hidden (view full) --- 49#include <limits.h> 50#include <ctype.h> 51#include "regex_impl.h" 52 53#include "regutils.h" 54#include "regex2.h" 55 56/* macros for manipulating states, small version */ |
57#define states long 58#define states1 states /* for later use in llvm_regexec() decision */ | 57/* FIXME: 'states' is assumed as 'long' on small version. */ 58#define states1 long /* for later use in llvm_regexec() decision */ 59#define states states1 |
59#define CLEAR(v) ((v) = 0) 60#define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) 61#define SET1(v, n) ((v) |= (unsigned long)1 << (n)) 62#define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) 63#define ASSIGN(d, s) ((d) = (s)) 64#define EQ(a, b) ((a) == (b)) 65#define STATEVARS long dummy /* dummy version */ 66#define STATESETUP(m, n) /* nothing */ --- 95 unchanged lines hidden --- | 60#define CLEAR(v) ((v) = 0) 61#define SET0(v, n) ((v) &= ~((unsigned long)1 << (n))) 62#define SET1(v, n) ((v) |= (unsigned long)1 << (n)) 63#define ISSET(v, n) (((v) & ((unsigned long)1 << (n))) != 0) 64#define ASSIGN(d, s) ((d) = (s)) 65#define EQ(a, b) ((a) == (b)) 66#define STATEVARS long dummy /* dummy version */ 67#define STATESETUP(m, n) /* nothing */ --- 95 unchanged lines hidden --- |