diff options
Diffstat (limited to 'contrib/less/pattern.h')
-rw-r--r-- | contrib/less/pattern.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/contrib/less/pattern.h b/contrib/less/pattern.h index c92aa02..2bcc7ab 100644 --- a/contrib/less/pattern.h +++ b/contrib/less/pattern.h @@ -1,12 +1,18 @@ -/* - * Copyright (C) 1984-2011 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. - */ +/*
+ * Copyright (C) 1984-2012 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, see the README file.
+ */
+ +#if HAVE_GNU_REGEX +#define __USE_GNU 1 +#include <regex.h> +#define DEFINE_PATTERN(name) struct re_pattern_buffer *name +#define CLEAR_PATTERN(name) name = NULL +#endif #if HAVE_POSIX_REGCOMP #include <regex.h> @@ -47,3 +53,7 @@ extern char *__loc1; #define CLEAR_PATTERN(name) name = NULL #endif +#if NO_REGEX +#define DEFINE_PATTERN(name) +#define CLEAR_PATTERN(name) +#endif |