pattern.h (95270f73baf6fa95ae529bc2eb6a61f5c79f32c0) pattern.h (d713e0891ff9ab8246245c3206851d486ecfdd37)
1/*
1/*
2 * Copyright (C) 1984-2022 Mark Nudelman
2 * Copyright (C) 1984-2023 Mark Nudelman
3 *
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.
6 *
7 * For more information, see the README file.
8 */
9
10#if HAVE_GNU_REGEX

--- 31 unchanged lines hidden (view full) ---

42#include <pcre2.h>
43#define PATTERN_TYPE pcre2_code *
44#define SET_NULL_PATTERN(name) name = NULL
45#define re_handles_caseless TRUE
46#endif
47
48/* ---- RE_COMP ---- */
49#if HAVE_RE_COMP
3 *
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.
6 *
7 * For more information, see the README file.
8 */
9
10#if HAVE_GNU_REGEX

--- 31 unchanged lines hidden (view full) ---

42#include <pcre2.h>
43#define PATTERN_TYPE pcre2_code *
44#define SET_NULL_PATTERN(name) name = NULL
45#define re_handles_caseless TRUE
46#endif
47
48/* ---- RE_COMP ---- */
49#if HAVE_RE_COMP
50char *re_comp LESSPARAMS ((char*));
51int re_exec LESSPARAMS ((char*));
50char *re_comp(char*);
51int re_exec(char*);
52#define PATTERN_TYPE int
53#define SET_NULL_PATTERN(name) name = 0
54#endif
55
56/* ---- REGCMP ---- */
57#if HAVE_REGCMP
52#define PATTERN_TYPE int
53#define SET_NULL_PATTERN(name) name = 0
54#endif
55
56/* ---- REGCMP ---- */
57#if HAVE_REGCMP
58char *regcmp LESSPARAMS ((char*));
59char *regex LESSPARAMS ((char**, char*));
58char *regcmp(char*);
59char *regex(char**, char*);
60extern char *__loc1;
61#define PATTERN_TYPE char **
62#define SET_NULL_PATTERN(name) name = NULL
63#endif
64
65/* ---- REGCOMP ---- */
66#if HAVE_V8_REGCOMP
67#include "regexp.h"

--- 14 unchanged lines hidden ---
60extern char *__loc1;
61#define PATTERN_TYPE char **
62#define SET_NULL_PATTERN(name) name = NULL
63#endif
64
65/* ---- REGCOMP ---- */
66#if HAVE_V8_REGCOMP
67#include "regexp.h"

--- 14 unchanged lines hidden ---