aboutsummaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-07-27 07:05:08 +0000
committerXin LI <delphij@FreeBSD.org>2009-07-27 07:05:08 +0000
commitf4cb5a505fa28e14d4b01e5c934bcf965a1822b6 (patch)
tree810267e0ca5dff14ee42186b5d1de9fe9938e0ca /pattern.h
parente1193b7bca0eca8d5c2740fdfa576746303bb993 (diff)
downloadsrc-f4cb5a505fa28e14d4b01e5c934bcf965a1822b6.tar.gz
src-f4cb5a505fa28e14d4b01e5c934bcf965a1822b6.zip
Vendor import of less v436.vendor/less/v436
Notes
Notes: svn path=/vendor/less/dist/; revision=195902 svn path=/vendor/less/v436/; revision=195903; tag=vendor/less/v436
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/pattern.h b/pattern.h
new file mode 100644
index 000000000000..759234a743c5
--- /dev/null
+++ b/pattern.h
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 1984-2009 Mark Nudelman
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Less License, as specified in the README file.
+ *
+ * For more information about less, or for information on how to
+ * contact the author, see the README file.
+ */
+
+#if HAVE_POSIX_REGCOMP
+#include <regex.h>
+#ifdef REG_EXTENDED
+#define REGCOMP_FLAG REG_EXTENDED
+#else
+#define REGCOMP_FLAG 0
+#endif
+#define DEFINE_PATTERN(name) regex_t *name
+#define CLEAR_PATTERN(name) name = NULL
+#endif
+
+#if HAVE_PCRE
+#include <pcre.h>
+#define DEFINE_PATTERN(name) pcre *name
+#define CLEAR_PATTERN(name) name = NULL
+#endif
+
+#if HAVE_RE_COMP
+char *re_comp();
+int re_exec();
+#define DEFINE_PATTERN(name) int name
+#define CLEAR_PATTERN(name) name = 0
+#endif
+
+#if HAVE_REGCMP
+char *regcmp();
+char *regex();
+extern char *__loc1;
+#define DEFINE_PATTERN(name) char *name
+#define CLEAR_PATTERN(name) name = NULL
+#endif
+
+#if HAVE_V8_REGCOMP
+#include "regexp.h"
+#define DEFINE_PATTERN(name) struct regexp *name
+#define CLEAR_PATTERN(name) name = NULL
+#endif
+