2 * Copyright (C) 1984-2022 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 SET_NULL_PATTERN(name) name = NULL
18 #if HAVE_POSIX_REGCOMP
21 #define REGCOMP_FLAG REG_EXTENDED
23 #define REGCOMP_FLAG 0
25 #define PATTERN_TYPE regex_t *
26 #define SET_NULL_PATTERN(name) name = NULL
27 #define re_handles_caseless TRUE
33 #define PATTERN_TYPE pcre *
34 #define SET_NULL_PATTERN(name) name = NULL
35 #define re_handles_caseless TRUE
40 #define PCRE2_CODE_UNIT_WIDTH 8
42 #define PATTERN_TYPE pcre2_code *
43 #define SET_NULL_PATTERN(name) name = NULL
44 #define re_handles_caseless TRUE
47 /* ---- RE_COMP ---- */
49 char *re_comp
LESSPARAMS ((char*));
50 int re_exec
LESSPARAMS ((char*));
51 #define PATTERN_TYPE int
52 #define SET_NULL_PATTERN(name) name = 0
55 /* ---- REGCMP ---- */
57 char *regcmp
LESSPARAMS ((char*));
58 char *regex
LESSPARAMS ((char**, char*));
60 #define PATTERN_TYPE char **
61 #define SET_NULL_PATTERN(name) name = NULL
64 /* ---- REGCOMP ---- */
67 extern int reg_show_error
;
68 #define PATTERN_TYPE struct regexp *
69 #define SET_NULL_PATTERN(name) name = NULL
74 #define PATTERN_TYPE void *
75 #define SET_NULL_PATTERN(name)
78 #ifndef re_handles_caseless
79 #define re_handles_caseless FALSE