Deleted Added
full compact
pattern.h (221715) pattern.h (237613)
1/*
1/*
2 * Copyright (C) 1984-2011 Mark Nudelman
2 * Copyright (C) 1984-2012 Mark Nudelman
3 *
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Less License, as specified in the README file.
6 *
3 *
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Less License, as specified in the README file.
6 *
7 * For more information about less, or for information on how to
8 * contact the author, see the README file.
7 * For more information, see the README file.
9 */
10
8 */
9
10#if HAVE_GNU_REGEX
11#define __USE_GNU 1
12#include <regex.h>
13#define DEFINE_PATTERN(name) struct re_pattern_buffer *name
14#define CLEAR_PATTERN(name) name = NULL
15#endif
16
11#if HAVE_POSIX_REGCOMP
12#include <regex.h>
13#ifdef REG_EXTENDED
14extern int less_is_more;
15#define REGCOMP_FLAG (less_is_more ? 0 : REG_EXTENDED)
16#else
17#define REGCOMP_FLAG 0
18#endif

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

42#endif
43
44#if HAVE_V8_REGCOMP
45#include "regexp.h"
46#define DEFINE_PATTERN(name) struct regexp *name
47#define CLEAR_PATTERN(name) name = NULL
48#endif
49
17#if HAVE_POSIX_REGCOMP
18#include <regex.h>
19#ifdef REG_EXTENDED
20extern int less_is_more;
21#define REGCOMP_FLAG (less_is_more ? 0 : REG_EXTENDED)
22#else
23#define REGCOMP_FLAG 0
24#endif

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

48#endif
49
50#if HAVE_V8_REGCOMP
51#include "regexp.h"
52#define DEFINE_PATTERN(name) struct regexp *name
53#define CLEAR_PATTERN(name) name = NULL
54#endif
55
56#if NO_REGEX
57#define DEFINE_PATTERN(name)
58#define CLEAR_PATTERN(name)
59#endif