pattern.h (7e1b7636c894be9d1130c284089ce1ea0786ecec) pattern.h (b2ea244070ff84eab79e04befb7aa30c982fc84d)
1/*
2 * Copyright (C) 1984-2017 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 */

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

28
29#if HAVE_PCRE
30#include <pcre.h>
31#define PATTERN_TYPE pcre *
32#define CLEAR_PATTERN(name) name = NULL
33#endif
34
35#if HAVE_RE_COMP
1/*
2 * Copyright (C) 1984-2017 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 */

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

28
29#if HAVE_PCRE
30#include <pcre.h>
31#define PATTERN_TYPE pcre *
32#define CLEAR_PATTERN(name) name = NULL
33#endif
34
35#if HAVE_RE_COMP
36char *re_comp();
37int re_exec();
36char *re_comp LESSPARAMS ((char*));
37int re_exec LESSPARAMS ((char*));
38#define PATTERN_TYPE int
39#define CLEAR_PATTERN(name) name = 0
40#endif
41
42#if HAVE_REGCMP
38#define PATTERN_TYPE int
39#define CLEAR_PATTERN(name) name = 0
40#endif
41
42#if HAVE_REGCMP
43char *regcmp();
44char *regex();
43char *regcmp LESSPARAMS ((char*));
44char *regex LESSPARAMS ((char**, char*));
45extern char *__loc1;
46#define PATTERN_TYPE char **
47#define CLEAR_PATTERN(name) name = NULL
48#endif
49
50#if HAVE_V8_REGCOMP
51#include "regexp.h"
52extern int reg_show_error;
53#define PATTERN_TYPE struct regexp *
54#define CLEAR_PATTERN(name) name = NULL
55#endif
56
57#if NO_REGEX
58#define PATTERN_TYPE void *
59#define CLEAR_PATTERN(name)
60#endif
45extern char *__loc1;
46#define PATTERN_TYPE char **
47#define CLEAR_PATTERN(name) name = NULL
48#endif
49
50#if HAVE_V8_REGCOMP
51#include "regexp.h"
52extern int reg_show_error;
53#define PATTERN_TYPE struct regexp *
54#define CLEAR_PATTERN(name) name = NULL
55#endif
56
57#if NO_REGEX
58#define PATTERN_TYPE void *
59#define CLEAR_PATTERN(name)
60#endif