2 * Copyright (C) 1984-2020 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 PATTERN_TYPE struct re_pattern_buffer *
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 PATTERN_TYPE regex_t *
26 #define CLEAR_PATTERN(name) name = NULL
31 #define PATTERN_TYPE pcre *
32 #define CLEAR_PATTERN(name) name = NULL
36 #define PCRE2_CODE_UNIT_WIDTH 8
38 #define PATTERN_TYPE pcre2_code *
39 #define CLEAR_PATTERN(name) name = NULL
43 char *re_comp LESSPARAMS ((char*));
44 int re_exec LESSPARAMS ((char*));
45 #define PATTERN_TYPE int
46 #define CLEAR_PATTERN(name) name = 0
50 char *regcmp LESSPARAMS ((char*));
51 char *regex LESSPARAMS ((char**, char*));
53 #define PATTERN_TYPE char **
54 #define CLEAR_PATTERN(name) name = NULL
59 extern int reg_show_error;
60 #define PATTERN_TYPE struct regexp *
61 #define CLEAR_PATTERN(name) name = NULL
65 #define PATTERN_TYPE void *
66 #define CLEAR_PATTERN(name)