2 * Copyright (C) 1984-2012 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, see the README file.
13 #define DEFINE_PATTERN(name) struct re_pattern_buffer *name
14 #define CLEAR_PATTERN(name) name = NULL
17 #if HAVE_POSIX_REGCOMP
20 extern int less_is_more;
21 #define REGCOMP_FLAG (less_is_more ? 0 : REG_EXTENDED)
23 #define REGCOMP_FLAG 0
25 #define DEFINE_PATTERN(name) regex_t *name
26 #define CLEAR_PATTERN(name) name = NULL
31 #define DEFINE_PATTERN(name) pcre *name
32 #define CLEAR_PATTERN(name) name = NULL
38 #define DEFINE_PATTERN(name) int name
39 #define CLEAR_PATTERN(name) name = 0
46 #define DEFINE_PATTERN(name) char *name
47 #define CLEAR_PATTERN(name) name = NULL
52 #define DEFINE_PATTERN(name) struct regexp *name
53 #define CLEAR_PATTERN(name) name = NULL
57 #define DEFINE_PATTERN(name)
58 #define CLEAR_PATTERN(name)