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 #define REGCOMP_FLAG REG_EXTENDED
16 #define REGCOMP_FLAG 0
18 #define DEFINE_PATTERN(name) regex_t *name
19 #define CLEAR_PATTERN(name) name = NULL
24 #define DEFINE_PATTERN(name) pcre *name
25 #define CLEAR_PATTERN(name) name = NULL
31 #define DEFINE_PATTERN(name) int name
32 #define CLEAR_PATTERN(name) name = 0
39 #define DEFINE_PATTERN(name) char *name
40 #define CLEAR_PATTERN(name) name = NULL
45 #define DEFINE_PATTERN(name) struct regexp *name
46 #define CLEAR_PATTERN(name) name = NULL