2 * Copyright (C) 1984-2011 Mark Nudelman
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.
7 * For more information about less, or for information on how to
8 * contact the author, see the README file.
11 #if HAVE_POSIX_REGCOMP
14 extern int less_is_more;
15 #define REGCOMP_FLAG (less_is_more ? 0 : REG_EXTENDED)
17 #define REGCOMP_FLAG 0
19 #define DEFINE_PATTERN(name) regex_t *name
20 #define CLEAR_PATTERN(name) name = NULL
25 #define DEFINE_PATTERN(name) pcre *name
26 #define CLEAR_PATTERN(name) name = NULL
32 #define DEFINE_PATTERN(name) int name
33 #define CLEAR_PATTERN(name) name = 0
40 #define DEFINE_PATTERN(name) char *name
41 #define CLEAR_PATTERN(name) name = NULL
46 #define DEFINE_PATTERN(name) struct regexp *name
47 #define CLEAR_PATTERN(name) name = NULL